2023-05-02 02:43:59 +00:00
|
|
|
#include "libc/nt/codegen.h"
|
2020-12-28 21:47:19 +00:00
|
|
|
.imp kernel32,__imp_FlushFileBuffers,FlushFileBuffers,0
|
2020-06-15 14:18:57 +00:00
|
|
|
|
|
|
|
.text.windows
|
2023-06-06 06:35:31 +00:00
|
|
|
.ftrace1
|
2022-04-07 07:15:35 +00:00
|
|
|
__FlushFileBuffers:
|
2023-06-06 06:35:31 +00:00
|
|
|
.ftrace2
|
2023-05-09 08:56:56 +00:00
|
|
|
#ifdef __x86_64__
|
2020-06-15 14:18:57 +00:00
|
|
|
push %rbp
|
|
|
|
mov %rsp,%rbp
|
|
|
|
mov %rdi,%rcx
|
|
|
|
sub $32,%rsp
|
|
|
|
call *__imp_FlushFileBuffers(%rip)
|
|
|
|
leave
|
2023-05-09 08:56:56 +00:00
|
|
|
#elif defined(__aarch64__)
|
|
|
|
mov x0,#0
|
|
|
|
#endif
|
2020-06-15 14:18:57 +00:00
|
|
|
ret
|
2022-04-07 07:15:35 +00:00
|
|
|
.endfn __FlushFileBuffers,globl
|
2020-06-15 14:18:57 +00:00
|
|
|
.previous
|