Fix invalid-noreturn error

This commit is contained in:
Lucas Schumacher 2025-04-14 13:18:49 -04:00
parent 31df6146bf
commit 101c95d45f
3 changed files with 4 additions and 1 deletions

View File

@ -9,6 +9,7 @@ void exit(int8_t status){
: "r" ((long)status) // Input operand: status
: "x0", "x8" // Clobbered registers
);
for (;;);
}
intptr_t write(int32_t fd, const void* buf, intptr_t size){

View File

@ -10,6 +10,7 @@ void exit(int8_t status){
: "r" (status)
: "a0", "v0"
);
for(;;);
}
intptr_t write(int32_t fd, const void* buf, intptr_t size){

View File

@ -8,7 +8,8 @@ void exit(int8_t status) {
:
: "a"(SYS_EXIT), "D"(status)
:
);
);
for(;;);
}
#define SYS_WRITE 1