cosmopolitan/libc/sysv/errfuns/exfull.S

19 lines
307 B
ArmAsm
Raw Normal View History

#include "libc/macros.internal.h"
2020-06-15 14:18:57 +00:00
.text.unlikely
.ftrace1
exfull:
.ftrace2
#ifdef __x86_64__
.leafprologue
2022-05-16 20:20:08 +00:00
mov EXFULL(%rip),%ecx
jmp __errfun
#elif defined(__aarch64__)
adrp x1,EXFULL
ldrsw x0,[x1,#:lo12:EXFULL]
b __errfun
#else
#error "unsupported architecture"
#endif
2020-06-15 14:18:57 +00:00
.endfn exfull,globl,hidden