mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-05 10:48:29 +00:00
parent
1bd69867d1
commit
4f66d7f2dd
7 changed files with 72 additions and 2 deletions
18
libc/nt/kernel32/CreatePseudoConsole.S
Normal file
18
libc/nt/kernel32/CreatePseudoConsole.S
Normal file
|
@ -0,0 +1,18 @@
|
|||
#include "libc/nt/codegen.h"
|
||||
.imp kernel32,__imp_CreatePseudoConsole,CreatePseudoConsole
|
||||
|
||||
.text.windows
|
||||
.ftrace1
|
||||
CreatePseudoConsole:
|
||||
.ftrace2
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
mov __imp_CreatePseudoConsole(%rip),%rax
|
||||
jmp __sysv2nt6
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn CreatePseudoConsole,globl
|
||||
.previous
|
Loading…
Add table
Add a link
Reference in a new issue