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/sparc64 Pull up rev. 1.3 (approved by tho...



details:   https://anonhg.NetBSD.org/src/rev/154d3d367f55
branches:  netbsd-1-5
changeset: 488712:154d3d367f55
user:      kleink <kleink%NetBSD.org@localhost>
date:      Tue Jul 25 08:54:41 2000 +0000

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

diffstat:

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

diffs (25 lines):

diff -r e24ac84b1231 -r 154d3d367f55 lib/libc/arch/sparc64/SYS.h
--- a/lib/libc/arch/sparc64/SYS.h       Tue Jul 25 08:51:11 2000 +0000
+++ b/lib/libc/arch/sparc64/SYS.h       Tue Jul 25 08:54:41 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.2 1999/01/14 22:48:22 kleink Exp $
+ *     $NetBSD: SYS.h,v 1.2.10.1 2000/07/25 08:54:41 kleink Exp $
  */
 
 #include <machine/asm.h>
@@ -69,8 +69,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