Add memory to clobber list for read syscalls

This commit is contained in:
2025-04-14 20:57:23 -04:00
parent 6a51f8851b
commit c8875d39f2
2 changed files with 2 additions and 2 deletions

View File

@@ -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;
}