mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 14:58:30 +00:00
Make some new Windows 10 memory APIs available
This commit is contained in:
parent
f6ba270ff3
commit
101fb3d9b3
5 changed files with 30 additions and 4 deletions
|
@ -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
|
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue