cosmopolitan/libc/nt/kernel32/AddDllDirectory.S

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
340 B
ArmAsm
Raw Normal View History

2023-11-17 18:35:34 +00:00
#include "libc/nt/codegen.h"
.imp kernel32,__imp_AddDllDirectory,AddDllDirectory
.text.windows
2024-01-29 05:57:40 +00:00
.ftrace1
2023-11-17 18:35:34 +00:00
AddDllDirectory:
2024-01-29 05:57:40 +00:00
.ftrace2
2023-11-17 18:35:34 +00:00
#ifdef __x86_64__
push %rbp
mov %rsp,%rbp
mov %rdi,%rcx
sub $32,%rsp
call *__imp_AddDllDirectory(%rip)
leave
#elif defined(__aarch64__)
mov x0,#0
#endif
ret
.endfn AddDllDirectory,globl
.previous