Improve system call support on NT

- Improve i/o perf on New Technology
- Code cleanup on read() for New Technology
- Fix bad bug with dup() of socket on New Technology
- Clean up some more strace errors on New Technology
This commit is contained in:
Justine Tunney 2022-04-07 20:30:04 -07:00
parent 29bf8b1a30
commit 4f98ad1054
79 changed files with 707 additions and 197 deletions

View file

@ -2,11 +2,11 @@
.imp kernel32,__imp_CreateDirectoryW,CreateDirectoryW,0
.text.windows
CreateDirectory:
__CreateDirectory:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CreateDirectoryW(%rip),%rax
jmp __sysv2nt
.endfn CreateDirectory,globl
.endfn __CreateDirectory,globl
.previous

View file

@ -2,11 +2,11 @@
.imp kernel32,__imp_CreateProcessW,CreateProcessW,0
.text.windows
CreateProcess:
__CreateProcess:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_CreateProcessW(%rip),%rax
jmp __sysv2nt10
.endfn CreateProcess,globl
.endfn __CreateProcess,globl
.previous

View file

@ -2,11 +2,11 @@
.imp kernel32,__imp_DeviceIoControl,DeviceIoControl,0
.text.windows
DeviceIoControl:
__DeviceIoControl:
push %rbp
mov %rsp,%rbp
.profilable
mov __imp_DeviceIoControl(%rip),%rax
jmp __sysv2nt8
.endfn DeviceIoControl,globl
.endfn __DeviceIoControl,globl
.previous

View file

@ -2,7 +2,7 @@
.imp kernel32,__imp_GetFileAttributesW,GetFileAttributesW,0
.text.windows
GetFileAttributes:
__GetFileAttributes:
push %rbp
mov %rsp,%rbp
.profilable
@ -11,5 +11,5 @@ GetFileAttributes:
call *__imp_GetFileAttributesW(%rip)
leave
ret
.endfn GetFileAttributes,globl
.endfn __GetFileAttributes,globl
.previous