We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b05e90 commit 2e06543Copy full SHA for 2e06543
test/limine.c
@@ -8,6 +8,10 @@
8
9
int memcmp(const void *, const void *, size_t);
10
11
+static inline void outw(uint16_t port, uint16_t value) {
12
+ asm volatile ("outw %%ax, %1" : : "a" (value), "Nd" (port) : "memory");
13
+}
14
+
15
__attribute__((section(".limine_requests")))
16
static volatile uint64_t limine_base_revision[] = LIMINE_BASE_REVISION(6);
17
@@ -742,5 +746,6 @@ FEAT_START
742
746
e9_printf("Exec time: %d usec", perf_response->exec_usec);
743
747
FEAT_END
744
748
749
+ outw(0x604, 0x2000); /* QEMU-specific shutdown, used by automated tests. */
745
750
for (;;);
751
}
0 commit comments