mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-24 19:40:28 +00:00
Adds some NT functions (#1358)
This commit is contained in:
parent
12cb0669fb
commit
42a9ed0131
13 changed files with 195 additions and 0 deletions
19
libc/nt/kernel32/GetOEMCP.S
Normal file
19
libc/nt/kernel32/GetOEMCP.S
Normal file
|
@ -0,0 +1,19 @@
|
|||
#include "libc/nt/codegen.h"
|
||||
.imp kernel32,__imp_GetOEMCP,GetOEMCP
|
||||
|
||||
.text.windows
|
||||
.ftrace1
|
||||
GetOEMCP:
|
||||
.ftrace2
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
sub $32,%rsp
|
||||
call *__imp_GetOEMCP(%rip)
|
||||
leave
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
#endif
|
||||
ret
|
||||
.endfn GetOEMCP,globl
|
||||
.previous
|
Loading…
Add table
Add a link
Reference in a new issue