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