Add memory to clobber list for read syscalls
This commit is contained in:
@@ -48,7 +48,7 @@ intptr_t read(int32_t fd, const void* buf, intptr_t size){
|
||||
// Input operands
|
||||
: "r"((int64_t)fd), "r" (buf), "r"(size)
|
||||
// Clobbered registers
|
||||
: "x0", "x1", "x2", "x8"
|
||||
: "x0", "x1", "x2", "x8", "memory"
|
||||
);
|
||||
return n_read;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user