aboutsummaryrefslogtreecommitdiff
path: root/core/sys/linux
diff options
context:
space:
mode:
authorflga <flga@users.noreply.github.com>2023-11-07 23:19:14 +0000
committerflga <flga@users.noreply.github.com>2023-11-07 23:19:14 +0000
commit4266a7c1664d1f736d270b5eb0c7a9bc31cfe700 (patch)
treec715506262b80d6d145ad3e791a605eb2a91b308 /core/sys/linux
parent639cc9faa80ca95a26829685f45c34e23d753c8a (diff)
sys/linux: munmap was not using the correct syscall
Diffstat (limited to 'core/sys/linux')
-rw-r--r--core/sys/linux/sys.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/sys/linux/sys.odin b/core/sys/linux/sys.odin
index dfb25e5dd..314591d06 100644
--- a/core/sys/linux/sys.odin
+++ b/core/sys/linux/sys.odin
@@ -161,7 +161,7 @@ mprotect :: proc "contextless" (addr: rawptr, size: uint, prot: Mem_Protection)
/// Unmap memory
/// Available since Linux 1.0
munmap :: proc "contextless" (addr: rawptr, size: uint) -> (Errno) {
- ret := syscall(SYS_mmap, addr, size)
+ ret := syscall(SYS_munmap, addr, size)
return Errno(-ret)
}