add qemu_shutdown.

This commit is contained in:
Alexander Myltsev 2023-01-14 15:36:24 +04:00
parent 57704ff8dd
commit 6984aab0af

8
drivers/misc.h Normal file
View File

@ -0,0 +1,8 @@
#pragma once
#include "port.h"
__attribute__((noreturn))
static inline void qemu_shutdown() {
port_word_out(0x604, 0x2000);
__builtin_unreachable();
}