Use __builtin_unreachable.

This commit is contained in:
Alexander Myltsev 2022-12-13 01:25:27 +03:00
parent 781029e00a
commit caf78f3c9f
2 changed files with 3 additions and 1 deletions

View File

@ -4,5 +4,5 @@
__attribute__((noreturn))
static inline void qemu_shutdown() {
port_word_out(0x604, 0x2000);
while(1);
__builtin_unreachable();
}

View File

@ -1,7 +1,9 @@
int main();
_Noreturn
void _exit(int exit_status) {
asm("int $0x84": : "a"(0), "b"(exit_status));
__builtin_unreachable();
}
void _start() {