Annotation of /trunk/mkinitrd-magellan/klibc/usr/klibc/arch/mips/syscall.S
Parent Directory | Revision Log
Revision 532 -
(hide annotations)
(download)
Sat Sep 1 22:45:15 2007 UTC (16 years, 8 months ago) by niro
File size: 384 byte(s)
Sat Sep 1 22:45:15 2007 UTC (16 years, 8 months ago) by niro
File size: 384 byte(s)
-import if magellan mkinitrd; it is a fork of redhats mkinitrd-5.0.8 with all magellan patches and features; deprecates magellan-src/mkinitrd
1 | niro | 532 | #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 | # XXX: Break this up manually; as it is now it generates warnings. | ||
13 | sw v0, errno | ||
14 | li v0, -1 | ||
15 | 1: jr ra | ||
16 | END(__syscall_common) |