chiark / gitweb /
volume_id: provide libvolume_id.a file
[elogind.git] / klibc / klibc / arch / mips / syscall.S
1 #include <asm/asm.h>
2 #include <asm/regdef.h>
3 #include <asm/unistd.h>
4
5         .set noreorder
6         
7 LEAF(__syscall_common)
8         syscall
9         beqz    a3, 1f
10         # sw is actually two instructions; the first one goes
11         # in the branch delay slot
12         sw      v0, errno
13         li      v0, -1
14 1:      jr      ra
15         END(__syscall_common)