Fix invalid-noreturn error
This commit is contained in:
parent
31df6146bf
commit
101c95d45f
@ -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){
|
||||
|
||||
@ -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){
|
||||
|
||||
@ -9,6 +9,7 @@ void exit(int8_t status) {
|
||||
: "a"(SYS_EXIT), "D"(status)
|
||||
:
|
||||
);
|
||||
for(;;);
|
||||
}
|
||||
|
||||
#define SYS_WRITE 1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user