Implemented more arm64 instructions

This commit is contained in:
2025-03-06 23:13:14 +01:00
parent cb908e7b31
commit 0ac7fc9a85
26 changed files with 232 additions and 73 deletions

15
lib/sys/sys_linux_arm.q Normal file
View File

@ -0,0 +1,15 @@
read(fd int, buffer *byte, length int) -> int {
return syscall(63, fd, buffer, length)
}
write(fd int, buffer *byte, length int) -> int {
return syscall(64, fd, buffer, length)
}
mmap(address int, length uint, protection int, flags int) -> *any {
return syscall(222, address, length, protection, flags)
}
munmap(address *any, length uint) -> int {
return syscall(215, address, length)
}