mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-25 03:50:29 +00:00
Get aarch64 hello world working
$ m=aarch64-tiny $ make -j8 m=$m o/$m/tool/hello/hello.com o/third_party/qemu/qemu-aarch64 $ o/third_party/qemu/qemu-aarch64 o/$m/tool/hello/hello.com hello world $ ls -hal o/$m/tool/hello/hello.com -rwxr-xr-x 1 jart jart 4.0K May 9 05:04 o/aarch64-tiny/tool/hello/hello.com
This commit is contained in:
parent
e5e3cdf447
commit
ae0ee59614
174 changed files with 1454 additions and 851 deletions
|
@ -1,8 +1,17 @@
|
|||
#include "libc/macros.internal.h"
|
||||
.text.unlikely
|
||||
|
||||
e2big: .leafprologue
|
||||
e2big:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov E2BIG(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,E2BIG
|
||||
ldr w0,[x1,#:lo12:E2BIG]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn e2big,globl,hidden
|
||||
|
|
|
@ -1,8 +1,17 @@
|
|||
#include "libc/macros.internal.h"
|
||||
.text.unlikely
|
||||
|
||||
eacces: .leafprologue
|
||||
eacces:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov EACCES(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,EACCES
|
||||
ldr w0,[x1,#:lo12:EACCES]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn eacces,globl,hidden
|
||||
|
|
|
@ -2,8 +2,16 @@
|
|||
.text.unlikely
|
||||
|
||||
eaddrinuse:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov EADDRINUSE(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,EADDRINUSE
|
||||
ldr w0,[x1,#:lo12:EADDRINUSE]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn eaddrinuse,globl,hidden
|
||||
|
|
|
@ -2,8 +2,16 @@
|
|||
.text.unlikely
|
||||
|
||||
eaddrnotavail:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov EADDRNOTAVAIL(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,EADDRNOTAVAIL
|
||||
ldr w0,[x1,#:lo12:EADDRNOTAVAIL]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn eaddrnotavail,globl,hidden
|
||||
|
|
|
@ -1,8 +1,17 @@
|
|||
#include "libc/macros.internal.h"
|
||||
.text.unlikely
|
||||
|
||||
eadv: .leafprologue
|
||||
eadv:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov EADV(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,EADV
|
||||
ldr w0,[x1,#:lo12:EADV]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn eadv,globl,hidden
|
||||
|
|
|
@ -2,8 +2,16 @@
|
|||
.text.unlikely
|
||||
|
||||
eafnosupport:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov EAFNOSUPPORT(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,EAFNOSUPPORT
|
||||
ldr w0,[x1,#:lo12:EAFNOSUPPORT]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn eafnosupport,globl,hidden
|
||||
|
|
|
@ -1,8 +1,17 @@
|
|||
#include "libc/macros.internal.h"
|
||||
.text.unlikely
|
||||
|
||||
eagain: .leafprologue
|
||||
eagain:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov EAGAIN(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,EAGAIN
|
||||
ldr w0,[x1,#:lo12:EAGAIN]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn eagain,globl,hidden
|
||||
|
|
|
@ -2,8 +2,16 @@
|
|||
.text.unlikely
|
||||
|
||||
ealready:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov EALREADY(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,EALREADY
|
||||
ldr w0,[x1,#:lo12:EALREADY]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn ealready,globl,hidden
|
||||
|
|
|
@ -1,8 +1,17 @@
|
|||
#include "libc/macros.internal.h"
|
||||
.text.unlikely
|
||||
|
||||
ebade: .leafprologue
|
||||
ebade:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov EBADE(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,EBADE
|
||||
ldr w0,[x1,#:lo12:EBADE]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn ebade,globl,hidden
|
||||
|
|
|
@ -1,8 +1,17 @@
|
|||
#include "libc/macros.internal.h"
|
||||
.text.unlikely
|
||||
|
||||
ebadf: .leafprologue
|
||||
ebadf:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov EBADF(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,EBADF
|
||||
ldr w0,[x1,#:lo12:EBADF]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn ebadf,globl,hidden
|
||||
|
|
|
@ -1,8 +1,17 @@
|
|||
#include "libc/macros.internal.h"
|
||||
.text.unlikely
|
||||
|
||||
ebadfd: .leafprologue
|
||||
ebadfd:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov EBADFD(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,EBADFD
|
||||
ldr w0,[x1,#:lo12:EBADFD]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn ebadfd,globl,hidden
|
||||
|
|
|
@ -2,8 +2,16 @@
|
|||
.text.unlikely
|
||||
|
||||
ebadmsg:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov EBADMSG(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,EBADMSG
|
||||
ldr w0,[x1,#:lo12:EBADMSG]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn ebadmsg,globl,hidden
|
||||
|
|
|
@ -1,8 +1,17 @@
|
|||
#include "libc/macros.internal.h"
|
||||
.text.unlikely
|
||||
|
||||
ebadr: .leafprologue
|
||||
ebadr:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov EBADR(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,EBADR
|
||||
ldr w0,[x1,#:lo12:EBADR]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn ebadr,globl,hidden
|
||||
|
|
|
@ -2,8 +2,16 @@
|
|||
.text.unlikely
|
||||
|
||||
ebadrqc:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov EBADRQC(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,EBADRQC
|
||||
ldr w0,[x1,#:lo12:EBADRQC]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn ebadrqc,globl,hidden
|
||||
|
|
|
@ -2,8 +2,16 @@
|
|||
.text.unlikely
|
||||
|
||||
ebadslt:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov EBADSLT(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,EBADSLT
|
||||
ldr w0,[x1,#:lo12:EBADSLT]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn ebadslt,globl,hidden
|
||||
|
|
|
@ -1,8 +1,17 @@
|
|||
#include "libc/macros.internal.h"
|
||||
.text.unlikely
|
||||
|
||||
ebusy: .leafprologue
|
||||
ebusy:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov EBUSY(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,EBUSY
|
||||
ldr w0,[x1,#:lo12:EBUSY]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn ebusy,globl,hidden
|
||||
|
|
|
@ -2,8 +2,16 @@
|
|||
.text.unlikely
|
||||
|
||||
ecanceled:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov ECANCELED(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,ECANCELED
|
||||
ldr w0,[x1,#:lo12:ECANCELED]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn ecanceled,globl,hidden
|
||||
|
|
|
@ -1,8 +1,17 @@
|
|||
#include "libc/macros.internal.h"
|
||||
.text.unlikely
|
||||
|
||||
echild: .leafprologue
|
||||
echild:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov ECHILD(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,ECHILD
|
||||
ldr w0,[x1,#:lo12:ECHILD]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn echild,globl,hidden
|
||||
|
|
|
@ -1,8 +1,17 @@
|
|||
#include "libc/macros.internal.h"
|
||||
.text.unlikely
|
||||
|
||||
echrng: .leafprologue
|
||||
echrng:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov ECHRNG(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,ECHRNG
|
||||
ldr w0,[x1,#:lo12:ECHRNG]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn echrng,globl,hidden
|
||||
|
|
|
@ -1,8 +1,17 @@
|
|||
#include "libc/macros.internal.h"
|
||||
.text.unlikely
|
||||
|
||||
ecomm: .leafprologue
|
||||
ecomm:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov ECOMM(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,ECOMM
|
||||
ldr w0,[x1,#:lo12:ECOMM]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn ecomm,globl,hidden
|
||||
|
|
|
@ -2,8 +2,16 @@
|
|||
.text.unlikely
|
||||
|
||||
econnaborted:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov ECONNABORTED(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,ECONNABORTED
|
||||
ldr w0,[x1,#:lo12:ECONNABORTED]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn econnaborted,globl,hidden
|
||||
|
|
|
@ -2,8 +2,16 @@
|
|||
.text.unlikely
|
||||
|
||||
econnrefused:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov ECONNREFUSED(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,ECONNREFUSED
|
||||
ldr w0,[x1,#:lo12:ECONNREFUSED]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn econnrefused,globl,hidden
|
||||
|
|
|
@ -2,8 +2,16 @@
|
|||
.text.unlikely
|
||||
|
||||
econnreset:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov ECONNRESET(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,ECONNRESET
|
||||
ldr w0,[x1,#:lo12:ECONNRESET]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn econnreset,globl,hidden
|
||||
|
|
|
@ -2,8 +2,16 @@
|
|||
.text.unlikely
|
||||
|
||||
edeadlk:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov EDEADLK(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,EDEADLK
|
||||
ldr w0,[x1,#:lo12:EDEADLK]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn edeadlk,globl,hidden
|
||||
|
|
|
@ -2,8 +2,16 @@
|
|||
.text.unlikely
|
||||
|
||||
edestaddrreq:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov EDESTADDRREQ(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,EDESTADDRREQ
|
||||
ldr w0,[x1,#:lo12:EDESTADDRREQ]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn edestaddrreq,globl,hidden
|
||||
|
|
|
@ -1,8 +1,17 @@
|
|||
#include "libc/macros.internal.h"
|
||||
.text.unlikely
|
||||
|
||||
edom: .leafprologue
|
||||
edom:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov EDOM(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,EDOM
|
||||
ldr w0,[x1,#:lo12:EDOM]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn edom,globl,hidden
|
||||
|
|
|
@ -2,8 +2,16 @@
|
|||
.text.unlikely
|
||||
|
||||
edotdot:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov EDOTDOT(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,EDOTDOT
|
||||
ldr w0,[x1,#:lo12:EDOTDOT]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn edotdot,globl,hidden
|
||||
|
|
|
@ -1,8 +1,17 @@
|
|||
#include "libc/macros.internal.h"
|
||||
.text.unlikely
|
||||
|
||||
edquot: .leafprologue
|
||||
edquot:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov EDQUOT(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,EDQUOT
|
||||
ldr w0,[x1,#:lo12:EDQUOT]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn edquot,globl,hidden
|
||||
|
|
|
@ -1,8 +1,17 @@
|
|||
#include "libc/macros.internal.h"
|
||||
.text.unlikely
|
||||
|
||||
eexist: .leafprologue
|
||||
eexist:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov EEXIST(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,EEXIST
|
||||
ldr w0,[x1,#:lo12:EEXIST]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn eexist,globl,hidden
|
||||
|
|
|
@ -1,8 +1,17 @@
|
|||
#include "libc/macros.internal.h"
|
||||
.text.unlikely
|
||||
|
||||
efault: .leafprologue
|
||||
efault:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov EFAULT(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,EFAULT
|
||||
ldr w0,[x1,#:lo12:EFAULT]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn efault,globl,hidden
|
||||
|
|
|
@ -1,8 +1,17 @@
|
|||
#include "libc/macros.internal.h"
|
||||
.text.unlikely
|
||||
|
||||
efbig: .leafprologue
|
||||
efbig:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov EFBIG(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,EFBIG
|
||||
ldr w0,[x1,#:lo12:EFBIG]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn efbig,globl,hidden
|
||||
|
|
|
@ -2,8 +2,16 @@
|
|||
.text.unlikely
|
||||
|
||||
ehostdown:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov EHOSTDOWN(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,EHOSTDOWN
|
||||
ldr w0,[x1,#:lo12:EHOSTDOWN]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn ehostdown,globl,hidden
|
||||
|
|
|
@ -2,8 +2,16 @@
|
|||
.text.unlikely
|
||||
|
||||
ehostunreach:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov EHOSTUNREACH(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,EHOSTUNREACH
|
||||
ldr w0,[x1,#:lo12:EHOSTUNREACH]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn ehostunreach,globl,hidden
|
||||
|
|
|
@ -2,8 +2,16 @@
|
|||
.text.unlikely
|
||||
|
||||
ehwpoison:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov EHWPOISON(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,EHWPOISON
|
||||
ldr w0,[x1,#:lo12:EHWPOISON]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn ehwpoison,globl,hidden
|
||||
|
|
|
@ -1,8 +1,17 @@
|
|||
#include "libc/macros.internal.h"
|
||||
.text.unlikely
|
||||
|
||||
eidrm: .leafprologue
|
||||
eidrm:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov EIDRM(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,EIDRM
|
||||
ldr w0,[x1,#:lo12:EIDRM]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn eidrm,globl,hidden
|
||||
|
|
|
@ -1,8 +1,17 @@
|
|||
#include "libc/macros.internal.h"
|
||||
.text.unlikely
|
||||
|
||||
eilseq: .leafprologue
|
||||
eilseq:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov EILSEQ(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,EILSEQ
|
||||
ldr w0,[x1,#:lo12:EILSEQ]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn eilseq,globl,hidden
|
||||
|
|
|
@ -2,8 +2,16 @@
|
|||
.text.unlikely
|
||||
|
||||
einprogress:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov EINPROGRESS(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,EINPROGRESS
|
||||
ldr w0,[x1,#:lo12:EINPROGRESS]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn einprogress,globl,hidden
|
||||
|
|
|
@ -1,8 +1,17 @@
|
|||
#include "libc/macros.internal.h"
|
||||
.text.unlikely
|
||||
|
||||
eintr: .leafprologue
|
||||
eintr:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov EINTR(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,EINTR
|
||||
ldr w0,[x1,#:lo12:EINTR]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn eintr,globl,hidden
|
||||
|
|
|
@ -1,8 +1,17 @@
|
|||
#include "libc/macros.internal.h"
|
||||
.text.unlikely
|
||||
|
||||
einval: .leafprologue
|
||||
einval:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov EINVAL(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,EINVAL
|
||||
ldr w0,[x1,#:lo12:EINVAL]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn einval,globl,hidden
|
||||
|
|
|
@ -1,8 +1,17 @@
|
|||
#include "libc/macros.internal.h"
|
||||
.text.unlikely
|
||||
|
||||
eio: .leafprologue
|
||||
eio:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov EIO(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,EIO
|
||||
ldr w0,[x1,#:lo12:EIO]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn eio,globl,hidden
|
||||
|
|
|
@ -2,8 +2,16 @@
|
|||
.text.unlikely
|
||||
|
||||
eisconn:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov EISCONN(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,EISCONN
|
||||
ldr w0,[x1,#:lo12:EISCONN]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn eisconn,globl,hidden
|
||||
|
|
|
@ -1,8 +1,17 @@
|
|||
#include "libc/macros.internal.h"
|
||||
.text.unlikely
|
||||
|
||||
eisdir: .leafprologue
|
||||
eisdir:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov EISDIR(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,EISDIR
|
||||
ldr w0,[x1,#:lo12:EISDIR]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn eisdir,globl,hidden
|
||||
|
|
|
@ -1,8 +1,17 @@
|
|||
#include "libc/macros.internal.h"
|
||||
.text.unlikely
|
||||
|
||||
eisnam: .leafprologue
|
||||
eisnam:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov EISNAM(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,EISNAM
|
||||
ldr w0,[x1,#:lo12:EISNAM]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn eisnam,globl,hidden
|
||||
|
|
|
@ -2,8 +2,16 @@
|
|||
.text.unlikely
|
||||
|
||||
ekeyexpired:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov EKEYEXPIRED(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,EKEYEXPIRED
|
||||
ldr w0,[x1,#:lo12:EKEYEXPIRED]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn ekeyexpired,globl,hidden
|
||||
|
|
|
@ -2,8 +2,16 @@
|
|||
.text.unlikely
|
||||
|
||||
ekeyrejected:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov EKEYREJECTED(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,EKEYREJECTED
|
||||
ldr w0,[x1,#:lo12:EKEYREJECTED]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn ekeyrejected,globl,hidden
|
||||
|
|
|
@ -2,8 +2,16 @@
|
|||
.text.unlikely
|
||||
|
||||
ekeyrevoked:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov EKEYREVOKED(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,EKEYREVOKED
|
||||
ldr w0,[x1,#:lo12:EKEYREVOKED]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn ekeyrevoked,globl,hidden
|
||||
|
|
|
@ -1,8 +1,17 @@
|
|||
#include "libc/macros.internal.h"
|
||||
.text.unlikely
|
||||
|
||||
el2hlt: .leafprologue
|
||||
el2hlt:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov EL2HLT(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,EL2HLT
|
||||
ldr w0,[x1,#:lo12:EL2HLT]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn el2hlt,globl,hidden
|
||||
|
|
|
@ -2,8 +2,16 @@
|
|||
.text.unlikely
|
||||
|
||||
el2nsync:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov EL2NSYNC(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,EL2NSYNC
|
||||
ldr w0,[x1,#:lo12:EL2NSYNC]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn el2nsync,globl,hidden
|
||||
|
|
|
@ -1,8 +1,17 @@
|
|||
#include "libc/macros.internal.h"
|
||||
.text.unlikely
|
||||
|
||||
el3hlt: .leafprologue
|
||||
el3hlt:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov EL3HLT(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,EL3HLT
|
||||
ldr w0,[x1,#:lo12:EL3HLT]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn el3hlt,globl,hidden
|
||||
|
|
|
@ -1,8 +1,17 @@
|
|||
#include "libc/macros.internal.h"
|
||||
.text.unlikely
|
||||
|
||||
el3rst: .leafprologue
|
||||
el3rst:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov EL3RST(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,EL3RST
|
||||
ldr w0,[x1,#:lo12:EL3RST]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn el3rst,globl,hidden
|
||||
|
|
|
@ -2,8 +2,16 @@
|
|||
.text.unlikely
|
||||
|
||||
elibacc:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov ELIBACC(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,ELIBACC
|
||||
ldr w0,[x1,#:lo12:ELIBACC]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn elibacc,globl,hidden
|
||||
|
|
|
@ -2,8 +2,16 @@
|
|||
.text.unlikely
|
||||
|
||||
elibbad:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov ELIBBAD(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,ELIBBAD
|
||||
ldr w0,[x1,#:lo12:ELIBBAD]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn elibbad,globl,hidden
|
||||
|
|
|
@ -2,8 +2,16 @@
|
|||
.text.unlikely
|
||||
|
||||
elibexec:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov ELIBEXEC(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,ELIBEXEC
|
||||
ldr w0,[x1,#:lo12:ELIBEXEC]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn elibexec,globl,hidden
|
||||
|
|
|
@ -2,8 +2,16 @@
|
|||
.text.unlikely
|
||||
|
||||
elibmax:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov ELIBMAX(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,ELIBMAX
|
||||
ldr w0,[x1,#:lo12:ELIBMAX]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn elibmax,globl,hidden
|
||||
|
|
|
@ -2,8 +2,16 @@
|
|||
.text.unlikely
|
||||
|
||||
elibscn:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov ELIBSCN(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,ELIBSCN
|
||||
ldr w0,[x1,#:lo12:ELIBSCN]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn elibscn,globl,hidden
|
||||
|
|
|
@ -1,8 +1,17 @@
|
|||
#include "libc/macros.internal.h"
|
||||
.text.unlikely
|
||||
|
||||
elnrng: .leafprologue
|
||||
elnrng:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov ELNRNG(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,ELNRNG
|
||||
ldr w0,[x1,#:lo12:ELNRNG]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn elnrng,globl,hidden
|
||||
|
|
|
@ -1,8 +1,17 @@
|
|||
#include "libc/macros.internal.h"
|
||||
.text.unlikely
|
||||
|
||||
eloop: .leafprologue
|
||||
eloop:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov ELOOP(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,ELOOP
|
||||
ldr w0,[x1,#:lo12:ELOOP]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn eloop,globl,hidden
|
||||
|
|
|
@ -2,8 +2,16 @@
|
|||
.text.unlikely
|
||||
|
||||
emediumtype:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov EMEDIUMTYPE(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,EMEDIUMTYPE
|
||||
ldr w0,[x1,#:lo12:EMEDIUMTYPE]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn emediumtype,globl,hidden
|
||||
|
|
|
@ -1,8 +1,17 @@
|
|||
#include "libc/macros.internal.h"
|
||||
.text.unlikely
|
||||
|
||||
emfile: .leafprologue
|
||||
emfile:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov EMFILE(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,EMFILE
|
||||
ldr w0,[x1,#:lo12:EMFILE]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn emfile,globl,hidden
|
||||
|
|
|
@ -1,8 +1,17 @@
|
|||
#include "libc/macros.internal.h"
|
||||
.text.unlikely
|
||||
|
||||
emlink: .leafprologue
|
||||
emlink:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov EMLINK(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,EMLINK
|
||||
ldr w0,[x1,#:lo12:EMLINK]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn emlink,globl,hidden
|
||||
|
|
|
@ -2,8 +2,16 @@
|
|||
.text.unlikely
|
||||
|
||||
emsgsize:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov EMSGSIZE(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,EMSGSIZE
|
||||
ldr w0,[x1,#:lo12:EMSGSIZE]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn emsgsize,globl,hidden
|
||||
|
|
|
@ -2,8 +2,16 @@
|
|||
.text.unlikely
|
||||
|
||||
emultihop:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov EMULTIHOP(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,EMULTIHOP
|
||||
ldr w0,[x1,#:lo12:EMULTIHOP]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn emultihop,globl,hidden
|
||||
|
|
|
@ -2,8 +2,16 @@
|
|||
.text.unlikely
|
||||
|
||||
enametoolong:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov ENAMETOOLONG(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,ENAMETOOLONG
|
||||
ldr w0,[x1,#:lo12:ENAMETOOLONG]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn enametoolong,globl,hidden
|
||||
|
|
|
@ -2,8 +2,16 @@
|
|||
.text.unlikely
|
||||
|
||||
enavail:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov ENAVAIL(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,ENAVAIL
|
||||
ldr w0,[x1,#:lo12:ENAVAIL]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn enavail,globl,hidden
|
||||
|
|
|
@ -2,8 +2,16 @@
|
|||
.text.unlikely
|
||||
|
||||
enetdown:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov ENETDOWN(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,ENETDOWN
|
||||
ldr w0,[x1,#:lo12:ENETDOWN]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn enetdown,globl,hidden
|
||||
|
|
|
@ -2,8 +2,16 @@
|
|||
.text.unlikely
|
||||
|
||||
enetreset:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov ENETRESET(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,ENETRESET
|
||||
ldr w0,[x1,#:lo12:ENETRESET]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn enetreset,globl,hidden
|
||||
|
|
|
@ -2,8 +2,16 @@
|
|||
.text.unlikely
|
||||
|
||||
enetunreach:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov ENETUNREACH(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,ENETUNREACH
|
||||
ldr w0,[x1,#:lo12:ENETUNREACH]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn enetunreach,globl,hidden
|
||||
|
|
|
@ -1,8 +1,17 @@
|
|||
#include "libc/macros.internal.h"
|
||||
.text.unlikely
|
||||
|
||||
enfile: .leafprologue
|
||||
enfile:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov ENFILE(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,ENFILE
|
||||
ldr w0,[x1,#:lo12:ENFILE]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn enfile,globl,hidden
|
||||
|
|
|
@ -1,8 +1,17 @@
|
|||
#include "libc/macros.internal.h"
|
||||
.text.unlikely
|
||||
|
||||
enoano: .leafprologue
|
||||
enoano:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov ENOANO(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,ENOANO
|
||||
ldr w0,[x1,#:lo12:ENOANO]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn enoano,globl,hidden
|
||||
|
|
|
@ -2,8 +2,16 @@
|
|||
.text.unlikely
|
||||
|
||||
enobufs:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov ENOBUFS(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,ENOBUFS
|
||||
ldr w0,[x1,#:lo12:ENOBUFS]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn enobufs,globl,hidden
|
||||
|
|
|
@ -1,8 +1,17 @@
|
|||
#include "libc/macros.internal.h"
|
||||
.text.unlikely
|
||||
|
||||
enocsi: .leafprologue
|
||||
enocsi:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov ENOCSI(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,ENOCSI
|
||||
ldr w0,[x1,#:lo12:ENOCSI]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn enocsi,globl,hidden
|
||||
|
|
|
@ -2,8 +2,16 @@
|
|||
.text.unlikely
|
||||
|
||||
enodata:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov ENODATA(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,ENODATA
|
||||
ldr w0,[x1,#:lo12:ENODATA]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn enodata,globl,hidden
|
||||
|
|
|
@ -1,8 +1,17 @@
|
|||
#include "libc/macros.internal.h"
|
||||
.text.unlikely
|
||||
|
||||
enodev: .leafprologue
|
||||
enodev:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov ENODEV(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,ENODEV
|
||||
ldr w0,[x1,#:lo12:ENODEV]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn enodev,globl,hidden
|
||||
|
|
|
@ -1,8 +1,17 @@
|
|||
#include "libc/macros.internal.h"
|
||||
.text.unlikely
|
||||
|
||||
enoent: .leafprologue
|
||||
enoent:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov ENOENT(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,ENOENT
|
||||
ldr w0,[x1,#:lo12:ENOENT]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn enoent,globl,hidden
|
||||
|
|
|
@ -2,8 +2,16 @@
|
|||
.text.unlikely
|
||||
|
||||
enoexec:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov ENOEXEC(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,ENOEXEC
|
||||
ldr w0,[x1,#:lo12:ENOEXEC]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn enoexec,globl,hidden
|
||||
|
|
|
@ -1,8 +1,17 @@
|
|||
#include "libc/macros.internal.h"
|
||||
.text.unlikely
|
||||
|
||||
enokey: .leafprologue
|
||||
enokey:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov ENOKEY(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,ENOKEY
|
||||
ldr w0,[x1,#:lo12:ENOKEY]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn enokey,globl,hidden
|
||||
|
|
|
@ -1,8 +1,17 @@
|
|||
#include "libc/macros.internal.h"
|
||||
.text.unlikely
|
||||
|
||||
enolck: .leafprologue
|
||||
enolck:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov ENOLCK(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,ENOLCK
|
||||
ldr w0,[x1,#:lo12:ENOLCK]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn enolck,globl,hidden
|
||||
|
|
|
@ -2,8 +2,16 @@
|
|||
.text.unlikely
|
||||
|
||||
enolink:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov ENOLINK(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,ENOLINK
|
||||
ldr w0,[x1,#:lo12:ENOLINK]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn enolink,globl,hidden
|
||||
|
|
|
@ -2,8 +2,16 @@
|
|||
.text.unlikely
|
||||
|
||||
enomedium:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov ENOMEDIUM(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,ENOMEDIUM
|
||||
ldr w0,[x1,#:lo12:ENOMEDIUM]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn enomedium,globl,hidden
|
||||
|
|
|
@ -1,8 +1,17 @@
|
|||
#include "libc/macros.internal.h"
|
||||
.text.unlikely
|
||||
|
||||
enomem: .leafprologue
|
||||
enomem:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov ENOMEM(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,ENOMEM
|
||||
ldr w0,[x1,#:lo12:ENOMEM]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn enomem,globl,hidden
|
||||
|
|
|
@ -1,8 +1,17 @@
|
|||
#include "libc/macros.internal.h"
|
||||
.text.unlikely
|
||||
|
||||
enomsg: .leafprologue
|
||||
enomsg:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov ENOMSG(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,ENOMSG
|
||||
ldr w0,[x1,#:lo12:ENOMSG]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn enomsg,globl,hidden
|
||||
|
|
|
@ -1,8 +1,17 @@
|
|||
#include "libc/macros.internal.h"
|
||||
.text.unlikely
|
||||
|
||||
enonet: .leafprologue
|
||||
enonet:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov ENONET(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,ENONET
|
||||
ldr w0,[x1,#:lo12:ENONET]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn enonet,globl,hidden
|
||||
|
|
|
@ -1,8 +1,17 @@
|
|||
#include "libc/macros.internal.h"
|
||||
.text.unlikely
|
||||
|
||||
enopkg: .leafprologue
|
||||
enopkg:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov ENOPKG(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,ENOPKG
|
||||
ldr w0,[x1,#:lo12:ENOPKG]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn enopkg,globl,hidden
|
||||
|
|
|
@ -2,8 +2,16 @@
|
|||
.text.unlikely
|
||||
|
||||
enoprotoopt:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov ENOPROTOOPT(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,ENOPROTOOPT
|
||||
ldr w0,[x1,#:lo12:ENOPROTOOPT]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn enoprotoopt,globl,hidden
|
||||
|
|
|
@ -1,8 +1,17 @@
|
|||
#include "libc/macros.internal.h"
|
||||
.text.unlikely
|
||||
|
||||
enospc: .leafprologue
|
||||
enospc:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov ENOSPC(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,ENOSPC
|
||||
ldr w0,[x1,#:lo12:ENOSPC]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn enospc,globl,hidden
|
||||
|
|
|
@ -1,8 +1,17 @@
|
|||
#include "libc/macros.internal.h"
|
||||
.text.unlikely
|
||||
|
||||
enosr: .leafprologue
|
||||
enosr:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov ENOSR(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,ENOSR
|
||||
ldr w0,[x1,#:lo12:ENOSR]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn enosr,globl,hidden
|
||||
|
|
|
@ -1,8 +1,17 @@
|
|||
#include "libc/macros.internal.h"
|
||||
.text.unlikely
|
||||
|
||||
enostr: .leafprologue
|
||||
enostr:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov ENOSTR(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,ENOSTR
|
||||
ldr w0,[x1,#:lo12:ENOSTR]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn enostr,globl,hidden
|
||||
|
|
|
@ -1,8 +1,17 @@
|
|||
#include "libc/macros.internal.h"
|
||||
.text.unlikely
|
||||
|
||||
enosys: .leafprologue
|
||||
enosys:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov ENOSYS(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,ENOSYS
|
||||
ldr w0,[x1,#:lo12:ENOSYS]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn enosys,globl,hidden
|
||||
|
|
|
@ -2,8 +2,16 @@
|
|||
.text.unlikely
|
||||
|
||||
enotblk:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov ENOTBLK(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,ENOTBLK
|
||||
ldr w0,[x1,#:lo12:ENOTBLK]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn enotblk,globl,hidden
|
||||
|
|
|
@ -2,8 +2,16 @@
|
|||
.text.unlikely
|
||||
|
||||
enotconn:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov ENOTCONN(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,ENOTCONN
|
||||
ldr w0,[x1,#:lo12:ENOTCONN]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn enotconn,globl,hidden
|
||||
|
|
|
@ -2,8 +2,16 @@
|
|||
.text.unlikely
|
||||
|
||||
enotdir:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov ENOTDIR(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,ENOTDIR
|
||||
ldr w0,[x1,#:lo12:ENOTDIR]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn enotdir,globl,hidden
|
||||
|
|
|
@ -2,8 +2,16 @@
|
|||
.text.unlikely
|
||||
|
||||
enotempty:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov ENOTEMPTY(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,ENOTEMPTY
|
||||
ldr w0,[x1,#:lo12:ENOTEMPTY]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn enotempty,globl,hidden
|
||||
|
|
|
@ -2,8 +2,16 @@
|
|||
.text.unlikely
|
||||
|
||||
enotnam:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov ENOTNAM(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,ENOTNAM
|
||||
ldr w0,[x1,#:lo12:ENOTNAM]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn enotnam,globl,hidden
|
||||
|
|
|
@ -2,8 +2,16 @@
|
|||
.text.unlikely
|
||||
|
||||
enotrecoverable:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov ENOTRECOVERABLE(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,ENOTRECOVERABLE
|
||||
ldr w0,[x1,#:lo12:ENOTRECOVERABLE]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn enotrecoverable,globl,hidden
|
||||
|
|
|
@ -2,8 +2,16 @@
|
|||
.text.unlikely
|
||||
|
||||
enotsock:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov ENOTSOCK(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,ENOTSOCK
|
||||
ldr w0,[x1,#:lo12:ENOTSOCK]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn enotsock,globl,hidden
|
||||
|
|
|
@ -2,8 +2,16 @@
|
|||
.text.unlikely
|
||||
|
||||
enotsup:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov ENOTSUP(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,ENOTSUP
|
||||
ldr w0,[x1,#:lo12:ENOTSUP]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn enotsup,globl,hidden
|
||||
|
|
|
@ -1,8 +1,17 @@
|
|||
#include "libc/macros.internal.h"
|
||||
.text.unlikely
|
||||
|
||||
enotty: .leafprologue
|
||||
enotty:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov ENOTTY(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,ENOTTY
|
||||
ldr w0,[x1,#:lo12:ENOTTY]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn enotty,globl,hidden
|
||||
|
|
|
@ -2,8 +2,16 @@
|
|||
.text.unlikely
|
||||
|
||||
enotuniq:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov ENOTUNIQ(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,ENOTUNIQ
|
||||
ldr w0,[x1,#:lo12:ENOTUNIQ]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn enotuniq,globl,hidden
|
||||
|
|
|
@ -1,8 +1,17 @@
|
|||
#include "libc/macros.internal.h"
|
||||
.text.unlikely
|
||||
|
||||
enxio: .leafprologue
|
||||
enxio:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov ENXIO(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,ENXIO
|
||||
ldr w0,[x1,#:lo12:ENXIO]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn enxio,globl,hidden
|
||||
|
|
|
@ -2,8 +2,16 @@
|
|||
.text.unlikely
|
||||
|
||||
eopnotsupp:
|
||||
#ifdef __x86_64__
|
||||
.leafprologue
|
||||
.profilable
|
||||
mov EOPNOTSUPP(%rip),%ecx
|
||||
jmp __errfun
|
||||
#elif defined(__aarch64__)
|
||||
adrp x1,EOPNOTSUPP
|
||||
ldr w0,[x1,#:lo12:EOPNOTSUPP]
|
||||
b __errfun
|
||||
#else
|
||||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn eopnotsupp,globl,hidden
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue