mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-14 06:59:10 +00:00
Fix some win32 definitions
You can now use psapi.dll and pdh.dll. Some TODOs for Windows have been cleared out. We might have a working load average for the platform that should help GNU Make work well.
This commit is contained in:
parent
e2e0b042c1
commit
c23b6ecc31
162 changed files with 847 additions and 153 deletions
|
@ -1,2 +1,15 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp advapi32,__imp_ImpersonateSelf,ImpersonateSelf,0
|
||||
|
||||
.text.windows
|
||||
ImpersonateSelf:
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov %rdi,%rcx
|
||||
sub $32,%rsp
|
||||
call *__imp_ImpersonateSelf(%rip)
|
||||
leave
|
||||
ret
|
||||
.endfn ImpersonateSelf,globl
|
||||
.previous
|
||||
|
|
|
@ -1,2 +1,14 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp advapi32,__imp_RevertToSelf,RevertToSelf,0
|
||||
|
||||
.text.windows
|
||||
RevertToSelf:
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
sub $32,%rsp
|
||||
call *__imp_RevertToSelf(%rip)
|
||||
leave
|
||||
ret
|
||||
.endfn RevertToSelf,globl
|
||||
.previous
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue