diff options
Diffstat (limited to 'src/tests/qemu/init.c')
-rw-r--r-- | src/tests/qemu/init.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tests/qemu/init.c b/src/tests/qemu/init.c index f65b132..38df1aa 100644 --- a/src/tests/qemu/init.c +++ b/src/tests/qemu/init.c @@ -24,8 +24,12 @@ { fflush(stdout); fflush(stderr); +#if defined(__x86_64__) || defined(__i386__) ioperm(0x604, 2, 1); outw(1 << 13, 0x604); +#else + reboot(RB_POWER_OFF); +#endif sleep(30); fprintf(stderr, "\x1b[37m\x1b[41m\x1b[1mFailed to power off!!!\x1b[0m\n"); exit(1); |