Add mlock() and munlock()

This commit is contained in:
Justine Tunney 2023-04-27 10:42:52 -07:00
parent 7c9ef924bf
commit fec139f423
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
8 changed files with 115 additions and 2 deletions

View file

@ -1,2 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_VirtualLock,VirtualLock,0
.text.windows
VirtualLock:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_VirtualLock(%rip),%rax
jmp __sysv2nt
.endfn VirtualLock,globl
.previous

View file

@ -1,2 +1,12 @@
.include "o/libc/nt/codegen.inc"
.imp kernel32,__imp_VirtualUnlock,VirtualUnlock,0
.text.windows
VirtualUnlock:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_VirtualUnlock(%rip),%rax
jmp __sysv2nt
.endfn VirtualUnlock,globl
.previous