Artifact 6d9c3d5edfd61f6bec5699861a3d0950f428d5e859b2b7792d96524e44cfe154:
- File kmem/platform.munmap.fn.x86.lin.64.s — part of check-in [a8d93823f1] at 2019-08-18 13:42:35 on branch trunk — add functions, generate C syscall table (user: lexi, size: 483) [annotate] [blame] [check-ins using]
bits 64 %include "../arch/x86.lin.64.s" %include "../arch/x86.cdecl.64.s" ; vim: ft=nasm global kmem_platform_munmap kmem_platform_munmap: ; to call munmap, we need to translate the cdecl64 ; register arguments to their appropriate syscall64 ; registers. all those that matter are the same. mov sys.reg.1, ccall.reg.0 ;nop - rdi → rdi mov sys.reg.2, ccall.reg.1 ;nop - rsi → rsi mov sys.reg.0, sys.munmap sys.call mov ccall.reg.ret, sys.reg.ret ; rax → rdi ret