switch to %g2. maybe we should give in and use %o7+8
authorChris Torek <torek@ucbvax.Berkeley.EDU>
Fri, 10 Jul 1992 10:30:44 +0000 (02:30 -0800)
committerChris Torek <torek@ucbvax.Berkeley.EDU>
Fri, 10 Jul 1992 10:30:44 +0000 (02:30 -0800)
SCCS-vsn: lib/libc/sparc/SYS.h 5.3

usr/src/lib/libc/sparc/SYS.h

index 55abb37..e667ff4 100644 (file)
@@ -8,7 +8,9 @@
  *
  * %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; \
        t ST_SYSCALL; ERROR()
 
 /*
        t ST_SYSCALL; ERROR()
 
 /*
- * 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.
  */
 #define        PSEUDO(x,y) \
  */
 #define        PSEUDO(x,y) \
-       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