add qemu_shutdown.
This commit is contained in:
parent
57704ff8dd
commit
6984aab0af
8
drivers/misc.h
Normal file
8
drivers/misc.h
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#pragma once
|
||||||
|
#include "port.h"
|
||||||
|
|
||||||
|
__attribute__((noreturn))
|
||||||
|
static inline void qemu_shutdown() {
|
||||||
|
port_word_out(0x604, 0x2000);
|
||||||
|
__builtin_unreachable();
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user