mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 03:27:39 +00:00
baad1df71d
With these addtions, I could build and run a [sokol](https://github.com/floooh/sokol) application (using OpenGL) on both Linux and Windows.
20 lines
325 B
ArmAsm
20 lines
325 B
ArmAsm
#include "libc/nt/codegen.h"
|
|
.imp kernel32,__imp_GlobalUnlock,GlobalUnlock
|
|
|
|
.text.windows
|
|
.ftrace1
|
|
GlobalUnlock:
|
|
.ftrace2
|
|
#ifdef __x86_64__
|
|
push %rbp
|
|
mov %rsp,%rbp
|
|
mov %rdi,%rcx
|
|
sub $32,%rsp
|
|
call *__imp_GlobalUnlock(%rip)
|
|
leave
|
|
#elif defined(__aarch64__)
|
|
mov x0,#0
|
|
#endif
|
|
ret
|
|
.endfn GlobalUnlock,globl
|
|
.previous
|