cosmopolitan/libc/sysv/errfuns/eaddrinuse.S

18 lines
318 B
ArmAsm
Raw Normal View History

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