@@ -2,10 +2,10 @@ %include "../arch/x86.lin.64.s" %include "../arch/x86.cdecl.64.s" ; vim: ft=nasm -global kmem_posix_mmap -kmem_posix_mmap: +global kmem_platform_mmap +kmem_platform_mmap: ; to call mmap, we need to translate the cdecl64 ; register arguments to their appropriate syscall64 ; registers. these are mostly the same, with one ; obnoxious exception. the NOPs have been written @@ -21,4 +21,5 @@ mov sys.reg.0, sys.mmap sys.call mov ccall.reg.ret, sys.reg.ret ; rax → rdi + ret