Implemented more arm64 instructions
This commit is contained in:
parent
1832d2c73b
commit
014f161633
26 changed files with 232 additions and 73 deletions
15
lib/sys/sys_linux_arm.q
Normal file
15
lib/sys/sys_linux_arm.q
Normal 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)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue