Artifact 7b471fc2763ddad3ae989da3d74b38ef0b08f08ee0631c3dc5ab1e875e162051:
- File kmem/platform.munmap.fn.x86.lin.64.s — part of check-in [f85e6a07dd] at 2019-08-20 22:54:49 on branch trunk — reorganize posix assembly code (user: lexi, size: 489) [annotate] [blame] [check-ins using]
- File legacy/platform.munmap.fn.x86.lin.64.s — part of check-in [709ffb094d] at 2019-08-22 04:31:43 on branch trunk — finish moving heap allocation/free functions to the posix syscall apparatus and deprecate the direct assembly implementations of platform_mmap; update the kmem docs to match new function signatures (and remove typos) (user: lexi, size: 489) [annotate] [blame] [check-ins using]
- File mod/kmem/platform.munmap.fn.x86.lin.64.s — part of check-in [14172a910a] at 2019-08-21 06:00:24 on branch trunk — move modules to a subdirectory in order to keep the directory tree organized and make room for OS-specific build files (user: lexi, size: 489) [annotate] [blame] [check-ins using]
bits 64 %include "../arch/posix/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