cosmopolitan/libc/sysv/errfuns/eprotonosupport.S
2024-08-04 12:52:25 -07:00

18 lines
343 B
ArmAsm

#include "libc/macros.h"
.text.unlikely
.ftrace1
eprotonosupport:
.ftrace2
#ifdef __x86_64__
.leafprologue
mov EPROTONOSUPPORT(%rip),%ecx
jmp __errfun
#elif defined(__aarch64__)
adrp x1,EPROTONOSUPPORT
ldrsw x0,[x1,#:lo12:EPROTONOSUPPORT]
b __errfun
#else
#error "unsupported architecture"
#endif
.endfn eprotonosupport,globl,hidden