mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-12 17:27:56 +00:00
18 lines
333 B
ArmAsm
18 lines
333 B
ArmAsm
#include "libc/macros.h"
|
|
.text.unlikely
|
|
|
|
.ftrace1
|
|
eaddrnotavail:
|
|
.ftrace2
|
|
#ifdef __x86_64__
|
|
.leafprologue
|
|
mov EADDRNOTAVAIL(%rip),%ecx
|
|
jmp __errfun
|
|
#elif defined(__aarch64__)
|
|
adrp x1,EADDRNOTAVAIL
|
|
ldrsw x0,[x1,#:lo12:EADDRNOTAVAIL]
|
|
b __errfun
|
|
#else
|
|
#error "unsupported architecture"
|
|
#endif
|
|
.endfn eaddrnotavail,globl,hidden
|