Return to SYS.h CVS log | Up to [cvs.NetBSD.org] / src / lib / libc / arch / sh3 |
Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. |
version 1.8, 2006/01/06 03:58:31 | version 1.9, 2006/01/06 06:19:20 | ||
---|---|---|---|
|
|
||
#define SYSTRAP(x) \ | #define SYSTRAP(x) \ | ||
mov.l 903f, r0; \ | mov.l 903f, r0; \ | ||
.long 0xc380; /* trapa #0x80 */ \ | .long 0xc380; /* trapa #0x80 */ \ | ||
nop; \ | |||
bra 904f; \ | bra 904f; \ | ||
nop; \ | nop; \ | ||
.align 2; \ | .align 2; \ | ||
|
|
||
#define SYSTRAP(x) \ | #define SYSTRAP(x) \ | ||
mov.l 903f, r0; \ | mov.l 903f, r0; \ | ||
trapa #0x80; \ | trapa #0x80; \ | ||
nop; \ | |||
bra 904f; \ | bra 904f; \ | ||
nop; \ | nop; \ | ||
.align 2; \ | .align 2; \ | ||
|
|
||
.text; \ | .text; \ | ||
911: JUMP_CERROR; \ | 911: JUMP_CERROR; \ | ||
_SYSCALL_NOERROR(x,y); \ | _SYSCALL_NOERROR(x,y); \ | ||
bf 911b; \ | bf 911b | ||
nop | |||
#define SYSCALL_NOERROR(x) \ | #define SYSCALL_NOERROR(x) \ | ||
_SYSCALL_NOERROR(x,x) | _SYSCALL_NOERROR(x,x) |