Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/lib/libc/arch/sparc Pull up rev. 1.10 (approved by thor...



details:   https://anonhg.NetBSD.org/src/rev/e24ac84b1231
branches:  netbsd-1-5
changeset: 488711:e24ac84b1231
user:      kleink <kleink%NetBSD.org@localhost>
date:      Tue Jul 25 08:51:11 2000 +0000

description:
Pull up rev. 1.10 (approved by thorpej):
Add a _SYSCALL(entry,syscall) macro.

diffstat:

 lib/libc/arch/sparc/SYS.h |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (25 lines):

diff -r acf7ffd2bab1 -r e24ac84b1231 lib/libc/arch/sparc/SYS.h
--- a/lib/libc/arch/sparc/SYS.h Tue Jul 25 08:39:59 2000 +0000
+++ b/lib/libc/arch/sparc/SYS.h Tue Jul 25 08:51:11 2000 +0000
@@ -37,7 +37,7 @@
  *     @(#)SYS.h       8.1 (Berkeley) 6/4/93
  *
  *     from: Header: SYS.h,v 1.2 92/07/03 18:57:00 torek Exp
- *     $NetBSD: SYS.h,v 1.9 1999/03/31 18:14:27 kleink Exp $
+ *     $NetBSD: SYS.h,v 1.9.10.1 2000/07/25 08:51:11 kleink Exp $
  */
 
 #include <machine/asm.h>
@@ -76,8 +76,11 @@
  * Note that it adds a `nop' over what we could do, if we only knew what
  * came at label 1....
  */
+#define        _SYSCALL(x,y) \
+       ENTRY(x); mov _CAT(SYS_,y),%g1; t ST_SYSCALL; bcc 1f; nop; ERROR(); 1:
+
 #define        SYSCALL(x) \
-       ENTRY(x); mov _CAT(SYS_,x),%g1; t ST_SYSCALL; bcc 1f; nop; ERROR(); 1:
+       _SYSCALL(x,x)
 
 /*
  * RSYSCALL is used when the system call should just return.  Here



Home | Main Index | Thread Index | Old Index