Make some new Windows 10 memory APIs available

This commit is contained in:
Justine Tunney 2024-07-19 22:26:49 -07:00
parent f6ba270ff3
commit 101fb3d9b3
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
5 changed files with 30 additions and 4 deletions

View file

@ -1,18 +0,0 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_MapViewOfFile3,MapViewOfFile3
.text.windows
.ftrace1
MapViewOfFile3:
.ftrace2
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
mov __imp_MapViewOfFile3(%rip),%rax
jmp __sysv2nt10
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn MapViewOfFile3,globl
.previous

View file

@ -1,18 +0,0 @@
#include "libc/nt/codegen.h"
.imp kernel32,__imp_VirtualAlloc2,VirtualAlloc2
.text.windows
.ftrace1
VirtualAlloc2:
.ftrace2
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
mov __imp_VirtualAlloc2(%rip),%rax
jmp __sysv2nt8
#elif defined(__aarch64__)
mov x0,#0
ret
#endif
.endfn VirtualAlloc2,globl
.previous