Use __builtin_unreachable.
This commit is contained in:
parent
781029e00a
commit
caf78f3c9f
@ -4,5 +4,5 @@
|
||||
__attribute__((noreturn))
|
||||
static inline void qemu_shutdown() {
|
||||
port_word_out(0x604, 0x2000);
|
||||
while(1);
|
||||
__builtin_unreachable();
|
||||
}
|
||||
|
||||
@ -1,7 +1,9 @@
|
||||
int main();
|
||||
|
||||
_Noreturn
|
||||
void _exit(int exit_status) {
|
||||
asm("int $0x84": : "a"(0), "b"(exit_status));
|
||||
__builtin_unreachable();
|
||||
}
|
||||
|
||||
void _start() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user