SCCS-vsn: lib/libc/sparc/SYS.h 5.3
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)SYS.h 5.2 (Berkeley) %G%
+ * @(#)SYS.h 5.3 (Berkeley) %G%
+ *
+ * from: $Header: SYS.h,v 1.2 92/07/03 18:57:00 torek Exp $
*/
#include <sys/syscall.h>
*/
#include <sys/syscall.h>
/*
* RSYSCALL is used when the system call should just return. Here
/*
* RSYSCALL is used when the system call should just return. Here
- * we use the SYSCALL_RFLAG to put the `success' return address in %g7
+ * we use the SYSCALL_G2RFLAG to put the `success' return address in %g2
* and avoid a branch.
*/
#define RSYSCALL(x) \
* and avoid a branch.
*/
#define RSYSCALL(x) \
- ENTRY(x); mov (SYS_##x)|SYSCALL_RFLAG,%g1; add %o7,8,%g7; \
+ ENTRY(x); mov (SYS_##x)|SYSCALL_G2RFLAG,%g1; add %o7,8,%g2; \
- * PSEUDO(x,y) is like RSYSCALL(y) except that the name is x.
+ * PSEUDO(x,y) is like RSYSCALL(y) except that the name is x.
- ENTRY(x); mov (SYS_##y)|SYSCALL_RFLAG,%g1; add %o7,8,%g7; \
+ ENTRY(x); mov (SYS_##y)|SYSCALL_G2RFLAG,%g1; add %o7,8,%g2; \
t ST_SYSCALL; ERROR()
#define ASMSTR .asciz
t ST_SYSCALL; ERROR()
#define ASMSTR .asciz