mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-27 04:50:28 +00:00
Get LIBC_RUNTIME and LIBC_CALLS building on aarch64
This commit is contained in:
parent
7e46645193
commit
e5e3cdf447
1200 changed files with 5341 additions and 3677 deletions
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp CsrClientCallServer,CsrClientCallServer
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
CsrClientCallServer:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_CsrClientCallServer(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn CsrClientCallServer,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp LdrGetDllHandle,LdrGetDllHandle
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
LdrGetDllHandle:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_LdrGetDllHandle(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn LdrGetDllHandle,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp LdrGetProcedureAddress,LdrGetProcedureAddress
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
LdrGetProcedureAddress:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_LdrGetProcedureAddress(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn LdrGetProcedureAddress,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp LdrLoadDll,LdrLoadDll
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
LdrLoadDll:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_LdrLoadDll(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn LdrLoadDll,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp LdrUnloadDll,LdrUnloadDll
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
LdrUnloadDll:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
|
@ -11,7 +11,9 @@ LdrUnloadDll:
|
|||
sub $32,%rsp
|
||||
call *__imp_LdrUnloadDll(%rip)
|
||||
leave
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
#endif
|
||||
ret
|
||||
.endfn LdrUnloadDll,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtAllocateVirtualMemory,NtAllocateVirtualMemory
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtAllocateVirtualMemory:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtAllocateVirtualMemory(%rip),%rax
|
||||
jmp __sysv2nt6
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtAllocateVirtualMemory,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtCallbackReturn,NtCallbackReturn
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtCallbackReturn:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtCallbackReturn(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtCallbackReturn,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtCancelIoFile,NtCancelIoFile
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtCancelIoFile:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtCancelIoFile(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtCancelIoFile,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtCancelIoFileEx,NtCancelIoFileEx
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtCancelIoFileEx:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtCancelIoFileEx(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtCancelIoFileEx,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtClearEvent,NtClearEvent
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtClearEvent:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
|
@ -11,7 +11,9 @@ NtClearEvent:
|
|||
sub $32,%rsp
|
||||
call *__imp_NtClearEvent(%rip)
|
||||
leave
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
#endif
|
||||
ret
|
||||
.endfn NtClearEvent,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtClose,NtClose
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtClose:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
|
@ -11,7 +11,9 @@ NtClose:
|
|||
sub $32,%rsp
|
||||
call *__imp_NtClose(%rip)
|
||||
leave
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
#endif
|
||||
ret
|
||||
.endfn NtClose,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtContinue,NtContinue
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtContinue:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtContinue(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtContinue,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtCreateDirectoryObject,NtCreateDirectoryObject
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtCreateDirectoryObject:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtCreateDirectoryObject(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtCreateDirectoryObject,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtCreateEvent,NtCreateEvent
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtCreateEvent:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtCreateEvent(%rip),%rax
|
||||
jmp __sysv2nt6
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtCreateEvent,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtCreateFile,NtCreateFile
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtCreateFile:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtCreateFile(%rip),%rax
|
||||
jmp __sysv2nt12
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtCreateFile,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtCreateIoCompletion,NtCreateIoCompletion
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtCreateIoCompletion:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtCreateIoCompletion(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtCreateIoCompletion,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtCreateKey,NtCreateKey
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtCreateKey:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtCreateKey(%rip),%rax
|
||||
jmp __sysv2nt8
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtCreateKey,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtCreateKeyedEvent,NtCreateKeyedEvent
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtCreateKeyedEvent:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtCreateKeyedEvent(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtCreateKeyedEvent,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtCreateNamedPipeFile,NtCreateNamedPipeFile
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtCreateNamedPipeFile:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtCreateNamedPipeFile(%rip),%rax
|
||||
jmp __sysv2nt14
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtCreateNamedPipeFile,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtCreateProcess,NtCreateProcess
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtCreateProcess:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtCreateProcess(%rip),%rax
|
||||
jmp __sysv2nt8
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtCreateProcess,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtCreateProfile,NtCreateProfile
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtCreateProfile:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtCreateProfile(%rip),%rax
|
||||
jmp __sysv2nt10
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtCreateProfile,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtCreateSection,NtCreateSection
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtCreateSection:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtCreateSection(%rip),%rax
|
||||
jmp __sysv2nt8
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtCreateSection,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtCreateThread,NtCreateThread
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtCreateThread:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtCreateThread(%rip),%rax
|
||||
jmp __sysv2nt8
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtCreateThread,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtCreateTimer,NtCreateTimer
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtCreateTimer:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtCreateTimer(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtCreateTimer,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtDelayExecution,NtDelayExecution
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtDelayExecution:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtDelayExecution(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtDelayExecution,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtDeleteFile,NtDeleteFile
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtDeleteFile:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
|
@ -11,7 +11,9 @@ NtDeleteFile:
|
|||
sub $32,%rsp
|
||||
call *__imp_NtDeleteFile(%rip)
|
||||
leave
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
#endif
|
||||
ret
|
||||
.endfn NtDeleteFile,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtDeleteKey,NtDeleteKey
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtDeleteKey:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
|
@ -11,7 +11,9 @@ NtDeleteKey:
|
|||
sub $32,%rsp
|
||||
call *__imp_NtDeleteKey(%rip)
|
||||
leave
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
#endif
|
||||
ret
|
||||
.endfn NtDeleteKey,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtDeviceIoControlFile,NtDeviceIoControlFile
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtDeviceIoControlFile:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtDeviceIoControlFile(%rip),%rax
|
||||
jmp __sysv2nt10
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtDeviceIoControlFile,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtDuplicateObject,NtDuplicateObject
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtDuplicateObject:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtDuplicateObject(%rip),%rax
|
||||
jmp __sysv2nt8
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtDuplicateObject,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtEnumerateKey,NtEnumerateKey
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtEnumerateKey:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtEnumerateKey(%rip),%rax
|
||||
jmp __sysv2nt6
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtEnumerateKey,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtEnumerateValueKey,NtEnumerateValueKey
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtEnumerateValueKey:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtEnumerateValueKey(%rip),%rax
|
||||
jmp __sysv2nt6
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtEnumerateValueKey,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtFlushBuffersFile,NtFlushBuffersFile
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtFlushBuffersFile:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtFlushBuffersFile(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtFlushBuffersFile,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtFlushInstructionCache,NtFlushInstructionCache
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtFlushInstructionCache:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtFlushInstructionCache(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtFlushInstructionCache,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtFlushKey,NtFlushKey
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtFlushKey:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
|
@ -11,7 +11,9 @@ NtFlushKey:
|
|||
sub $32,%rsp
|
||||
call *__imp_NtFlushKey(%rip)
|
||||
leave
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
#endif
|
||||
ret
|
||||
.endfn NtFlushKey,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtFlushVirtualMemory,NtFlushVirtualMemory
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtFlushVirtualMemory:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtFlushVirtualMemory(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtFlushVirtualMemory,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtFreeVirtualMemory,NtFreeVirtualMemory
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtFreeVirtualMemory:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtFreeVirtualMemory(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtFreeVirtualMemory,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtFsControlFile,NtFsControlFile
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtFsControlFile:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtFsControlFile(%rip),%rax
|
||||
jmp __sysv2nt10
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtFsControlFile,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtGetContextThread,NtGetContextThread
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtGetContextThread:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtGetContextThread(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtGetContextThread,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtMapViewOfSection,NtMapViewOfSection
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtMapViewOfSection:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtMapViewOfSection(%rip),%rax
|
||||
jmp __sysv2nt10
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtMapViewOfSection,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtOpenDirectoryObject,NtOpenDirectoryObject
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtOpenDirectoryObject:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtOpenDirectoryObject(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtOpenDirectoryObject,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtOpenFile,NtOpenFile
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtOpenFile:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtOpenFile(%rip),%rax
|
||||
jmp __sysv2nt6
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtOpenFile,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtOpenKey,NtOpenKey
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtOpenKey:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtOpenKey(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtOpenKey,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtOpenProcess,NtOpenProcess
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtOpenProcess:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtOpenProcess(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtOpenProcess,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtOpenProcessToken,NtOpenProcessToken
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtOpenProcessToken:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtOpenProcessToken(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtOpenProcessToken,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtOpenSection,NtOpenSection
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtOpenSection:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtOpenSection(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtOpenSection,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtOpenSymbolicLinkObject,NtOpenSymbolicLinkObject
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtOpenSymbolicLinkObject:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtOpenSymbolicLinkObject(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtOpenSymbolicLinkObject,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtOpenThread,NtOpenThread
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtOpenThread:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtOpenThread(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtOpenThread,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtOpenThreadToken,NtOpenThreadToken
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtOpenThreadToken:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtOpenThreadToken(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtOpenThreadToken,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtProtectVirtualMemory,NtProtectVirtualMemory
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtProtectVirtualMemory:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtProtectVirtualMemory(%rip),%rax
|
||||
jmp __sysv2nt6
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtProtectVirtualMemory,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtQueryAttributesFile,NtQueryAttributesFile
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtQueryAttributesFile:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtQueryAttributesFile(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtQueryAttributesFile,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtQueryDirectoryFile,NtQueryDirectoryFile
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtQueryDirectoryFile:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtQueryDirectoryFile(%rip),%rax
|
||||
jmp __sysv2nt12
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtQueryDirectoryFile,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtQueryFullAttributesFile,NtQueryFullAttributesFile
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtQueryFullAttributesFile:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtQueryFullAttributesFile(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtQueryFullAttributesFile,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtQueryInformationFile,NtQueryInformationFile
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtQueryInformationFile:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtQueryInformationFile(%rip),%rax
|
||||
jmp __sysv2nt6
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtQueryInformationFile,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtQueryInformationJobObject,NtQueryInformationJobObject
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtQueryInformationJobObject:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtQueryInformationJobObject(%rip),%rax
|
||||
jmp __sysv2nt6
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtQueryInformationJobObject,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtQueryInformationProcess,NtQueryInformationProcess
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtQueryInformationProcess:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtQueryInformationProcess(%rip),%rax
|
||||
jmp __sysv2nt6
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtQueryInformationProcess,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtQueryInformationThread,NtQueryInformationThread
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtQueryInformationThread:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtQueryInformationThread(%rip),%rax
|
||||
jmp __sysv2nt6
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtQueryInformationThread,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtQueryInformationToken,NtQueryInformationToken
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtQueryInformationToken:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtQueryInformationToken(%rip),%rax
|
||||
jmp __sysv2nt6
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtQueryInformationToken,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtQueryIntervalProfile,NtQueryIntervalProfile
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtQueryIntervalProfile:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtQueryIntervalProfile(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtQueryIntervalProfile,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtQueryObject,NtQueryObject
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtQueryObject:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtQueryObject(%rip),%rax
|
||||
jmp __sysv2nt6
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtQueryObject,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtQueryPerformanceCounter,NtQueryPerformanceCounter
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtQueryPerformanceCounter:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtQueryPerformanceCounter(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtQueryPerformanceCounter,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtQuerySection,NtQuerySection
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtQuerySection:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtQuerySection(%rip),%rax
|
||||
jmp __sysv2nt6
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtQuerySection,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtQuerySecurityObject,NtQuerySecurityObject
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtQuerySecurityObject:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtQuerySecurityObject(%rip),%rax
|
||||
jmp __sysv2nt6
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtQuerySecurityObject,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtQuerySymbolicLinkObject,NtQuerySymbolicLinkObject
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtQuerySymbolicLinkObject:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtQuerySymbolicLinkObject(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtQuerySymbolicLinkObject,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtQuerySystemInformation,NtQuerySystemInformation
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtQuerySystemInformation:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtQuerySystemInformation(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtQuerySystemInformation,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtQuerySystemTime,NtQuerySystemTime
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtQuerySystemTime:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
|
@ -11,7 +11,9 @@ NtQuerySystemTime:
|
|||
sub $32,%rsp
|
||||
call *__imp_NtQuerySystemTime(%rip)
|
||||
leave
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
#endif
|
||||
ret
|
||||
.endfn NtQuerySystemTime,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtQueryValueKey,NtQueryValueKey
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtQueryValueKey:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtQueryValueKey(%rip),%rax
|
||||
jmp __sysv2nt6
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtQueryValueKey,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtQueryVirtualMemory,NtQueryVirtualMemory
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtQueryVirtualMemory:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtQueryVirtualMemory(%rip),%rax
|
||||
jmp __sysv2nt6
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtQueryVirtualMemory,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtQueryVolumeInformationFile,NtQueryVolumeInformationFile
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtQueryVolumeInformationFile:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtQueryVolumeInformationFile(%rip),%rax
|
||||
jmp __sysv2nt6
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtQueryVolumeInformationFile,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtQueueApcThread,NtQueueApcThread
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtQueueApcThread:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtQueueApcThread(%rip),%rax
|
||||
jmp __sysv2nt6
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtQueueApcThread,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtRaiseException,NtRaiseException
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtRaiseException:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtRaiseException(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtRaiseException,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtRaiseHardError,NtRaiseHardError
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtRaiseHardError:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtRaiseHardError(%rip),%rax
|
||||
jmp __sysv2nt6
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtRaiseHardError,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtReadFile,NtReadFile
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtReadFile:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtReadFile(%rip),%rax
|
||||
jmp __sysv2nt10
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtReadFile,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtReadVirtualMemory,NtReadVirtualMemory
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtReadVirtualMemory:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtReadVirtualMemory(%rip),%rax
|
||||
jmp __sysv2nt6
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtReadVirtualMemory,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtReleaseKeyedEvent,NtReleaseKeyedEvent
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtReleaseKeyedEvent:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtReleaseKeyedEvent(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtReleaseKeyedEvent,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtResumeThread,NtResumeThread
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtResumeThread:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtResumeThread(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtResumeThread,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtSetContextThread,NtSetContextThread
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtSetContextThread:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtSetContextThread(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtSetContextThread,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtSetEvent,NtSetEvent
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtSetEvent:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtSetEvent(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtSetEvent,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtSetInformationFile,NtSetInformationFile
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtSetInformationFile:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtSetInformationFile(%rip),%rax
|
||||
jmp __sysv2nt6
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtSetInformationFile,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtSetInformationThread,NtSetInformationThread
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtSetInformationThread:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtSetInformationThread(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtSetInformationThread,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtSetIntervalProfile,NtSetIntervalProfile
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtSetIntervalProfile:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtSetIntervalProfile(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtSetIntervalProfile,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtSetTimer,NtSetTimer
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtSetTimer:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtSetTimer(%rip),%rax
|
||||
jmp __sysv2nt8
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtSetTimer,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtSetValueKey,NtSetValueKey
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtSetValueKey:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtSetValueKey(%rip),%rax
|
||||
jmp __sysv2nt6
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtSetValueKey,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtSignalAndWaitForSingleObject,NtSignalAndWaitForSingleObject
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtSignalAndWaitForSingleObject:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtSignalAndWaitForSingleObject(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtSignalAndWaitForSingleObject,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtStartProfile,NtStartProfile
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtStartProfile:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
|
@ -11,7 +11,9 @@ NtStartProfile:
|
|||
sub $32,%rsp
|
||||
call *__imp_NtStartProfile(%rip)
|
||||
leave
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
#endif
|
||||
ret
|
||||
.endfn NtStartProfile,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtStopProfile,NtStopProfile
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtStopProfile:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
|
@ -11,7 +11,9 @@ NtStopProfile:
|
|||
sub $32,%rsp
|
||||
call *__imp_NtStopProfile(%rip)
|
||||
leave
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
#endif
|
||||
ret
|
||||
.endfn NtStopProfile,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtSuspendThread,NtSuspendThread
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtSuspendThread:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtSuspendThread(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtSuspendThread,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtTerminateProcess,NtTerminateProcess
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtTerminateProcess:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtTerminateProcess(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtTerminateProcess,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtTerminateThread,NtTerminateThread
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtTerminateThread:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtTerminateThread(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtTerminateThread,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,16 +1,18 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtTestAlert,NtTestAlert
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtTestAlert:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
sub $32,%rsp
|
||||
call *__imp_NtTestAlert(%rip)
|
||||
leave
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
#endif
|
||||
ret
|
||||
.endfn NtTestAlert,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtUnmapViewOfSection,NtUnmapViewOfSection
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtUnmapViewOfSection:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtUnmapViewOfSection(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtUnmapViewOfSection,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtWaitForKeyedEvent,NtWaitForKeyedEvent
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtWaitForKeyedEvent:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtWaitForKeyedEvent(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtWaitForKeyedEvent,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtWaitForSingleObject,NtWaitForSingleObject
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtWaitForSingleObject:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtWaitForSingleObject(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtWaitForSingleObject,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtWriteFile,NtWriteFile
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtWriteFile:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtWriteFile(%rip),%rax
|
||||
jmp __sysv2nt10
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtWriteFile,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtWriteVirtualMemory,NtWriteVirtualMemory
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtWriteVirtualMemory:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_NtWriteVirtualMemory(%rip),%rax
|
||||
jmp __sysv2nt6
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn NtWriteVirtualMemory,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,16 +1,18 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp NtYieldExecution,NtYieldExecution
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
NtYieldExecution:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
sub $32,%rsp
|
||||
call *__imp_NtYieldExecution(%rip)
|
||||
leave
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
#endif
|
||||
ret
|
||||
.endfn NtYieldExecution,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp RtlAllocateHeap,RtlAllocateHeap
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
RtlAllocateHeap:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_RtlAllocateHeap(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn RtlAllocateHeap,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp RtlCloneUserProcess,RtlCloneUserProcess
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
RtlCloneUserProcess:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_RtlCloneUserProcess(%rip),%rax
|
||||
jmp __sysv2nt6
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn RtlCloneUserProcess,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp RtlConvertSidToUnicodeString,RtlConvertSidToUnicodeString
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
RtlConvertSidToUnicodeString:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_RtlConvertSidToUnicodeString(%rip),%rax
|
||||
jmp __sysv2nt
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn RtlConvertSidToUnicodeString,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp RtlCreateHeap,RtlCreateHeap
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
RtlCreateHeap:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_RtlCreateHeap(%rip),%rax
|
||||
jmp __sysv2nt6
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn RtlCreateHeap,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
#include "libc/nt/ntdllimport.h"
|
||||
.ntimp RtlCreateProcessParameters,RtlCreateProcessParameters
|
||||
|
||||
#ifdef __x86_64__
|
||||
.text.windows
|
||||
RtlCreateProcessParameters:
|
||||
#ifdef __x86_64__
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov __imp_RtlCreateProcessParameters(%rip),%rax
|
||||
jmp __sysv2nt10
|
||||
#elif defined(__aarch64__)
|
||||
mov x0,#0
|
||||
ret
|
||||
#endif
|
||||
.endfn RtlCreateProcessParameters,globl
|
||||
.previous
|
||||
#endif
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue