cosmopolitan/libc/sysv/errfuns/emfile.S

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
298 B
ArmAsm
Raw Normal View History

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