cosmopolitan/libc/sysv/errfuns/exdev.S

18 lines
293 B
ArmAsm
Raw Normal View History

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