Fix aarch64 build
This commit is contained in:
parent
459626809a
commit
eadc256d3f
@ -1,4 +1,5 @@
|
||||
#if defined(__aarch64__)
|
||||
#include <stdint.h>
|
||||
|
||||
void exit(int8_t status){
|
||||
asm ( "mov x0, %0\n" // Move the exit status into register x0
|
||||
@ -19,7 +20,7 @@ intptr_t write(int32_t fd, const void* buf, intptr_t size){
|
||||
"mov x8, #64\n"
|
||||
"svc #0\n"
|
||||
: //TODO: n_written
|
||||
: "r" (buf), "r"(count), "r"(fd)
|
||||
: "r" (buf), "r"(size), "r"(fd)
|
||||
: "x0", "x8" // Clobbered registers
|
||||
);
|
||||
return n_written;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user