Add read support for AArch64

This commit is contained in:
2025-04-14 14:09:14 -04:00
parent c2d03d048a
commit 6902b49be2
3 changed files with 22 additions and 2 deletions

2
sys.h
View File

@@ -6,7 +6,7 @@ void exit(int8_t status);
#define STDIO 1
#define STDERR 2
intptr_t write(int32_t fd, const void* buf, intptr_t size);
#if defined(__x86_64__)
#if defined(__x86_64__) || defined(__aarch64__)
intptr_t read(int32_t fd, const void* buf, intptr_t size);
#endif