Contents of /trunk/mkinitrd-magellan/klibc/usr/klibc/arch/mips/syscall.S
Parent Directory | Revision Log
Revision 815 -
(show annotations)
(download)
Fri Apr 24 18:32:46 2009 UTC (15 years ago) by niro
File size: 364 byte(s)
Fri Apr 24 18:32:46 2009 UTC (15 years ago) by niro
File size: 364 byte(s)
-updated to klibc-1.5.15
1 | #include <machine/asm.h> |
2 | #include <asm/unistd.h> |
3 | |
4 | .set noreorder |
5 | |
6 | LEAF(__syscall_common) |
7 | syscall |
8 | beqz a3, 1f |
9 | # sw is actually two instructions; the first one goes |
10 | # in the branch delay slot |
11 | # XXX: Break this up manually; as it is now it generates warnings. |
12 | sw v0, errno |
13 | li v0, -1 |
14 | 1: jr ra |
15 | END(__syscall_common) |