cosmopolitan/libc/sysv/errfuns/eaddrnotavail.S

19 lines
333 B
ArmAsm
Raw Normal View History

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