mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-22 21:32:31 +00:00
Fix Windows 7 support (#19)
This change pays off technical debt with the function -> DLL mappings in libc/nt/master.sh, which was originally defined based on binary analysis on Windows 10. It's now been updated so the kernel32/kernelbase/advapi32 imports should be exactly as they are written, on the MSDN documentation and that wouldn't have been easy without Geoff Chappell's work thank him https://www.geoffchappell.com/studies/windows/win32/index.htm
This commit is contained in:
parent
12065100e1
commit
0e85b136ae
1665 changed files with 13129 additions and 2637 deletions
15
libc/nt/kernel32/GetSystemTimePreciseAsFileTime.s
Normal file
15
libc/nt/kernel32/GetSystemTimePreciseAsFileTime.s
Normal file
|
@ -0,0 +1,15 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp kernel32,__imp_GetSystemTimePreciseAsFileTime,GetSystemTimePreciseAsFileTime,0
|
||||
|
||||
.text.windows
|
||||
GetSystemTimePreciseAsFileTime:
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov %rdi,%rcx
|
||||
sub $32,%rsp
|
||||
call *__imp_GetSystemTimePreciseAsFileTime(%rip)
|
||||
leave
|
||||
ret
|
||||
.endfn GetSystemTimePreciseAsFileTime,globl
|
||||
.previous
|
Loading…
Add table
Add a link
Reference in a new issue