Sign in
kernel
/
pub
/
scm
/
linux
/
kernel
/
git
/
bwh
/
klibc
/
9bfe94c405b6ae3f7a5c04c0d4cd539867ad2b85
/
.
/
usr
/
klibc
/
arch
/
riscv64
/
syscall.S
blob: 89d9bd2f923f291e9516e8f7ff84f39211e67fe3 [
file
] [
log
] [
blame
]
#include <machine/asm.h>
#include <asm/unistd.h>
ENTRY
(
__syscall_common
)
scall
li t0
,
-4096
bleu a0
,
t0
,
1
f
neg a0
,
a0
lui t0
,
%hi
(
errno
)
sw a0
,
%lo
(
errno
)(
t0
)
li a0
,
-1
1
:
jr ra
END
(
__syscall_common
)