Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/arch/m68k/sys Use SYSTRAP
details: https://anonhg.NetBSD.org/src/rev/725dc55b5511
branches: trunk
changeset: 787967:725dc55b5511
user: matt <matt%NetBSD.org@localhost>
date: Tue Jul 16 22:20:35 2013 +0000
description:
Use SYSTRAP
Use a branch for CERROR (avoid the PLT)
diffstat:
lib/libc/arch/m68k/sys/exect.S | 10 +++++-----
lib/libc/arch/m68k/sys/syscall.S | 9 ++++-----
2 files changed, 9 insertions(+), 10 deletions(-)
diffs (52 lines):
diff -r 8357071af8f8 -r 725dc55b5511 lib/libc/arch/m68k/sys/exect.S
--- a/lib/libc/arch/m68k/sys/exect.S Tue Jul 16 22:19:37 2013 +0000
+++ b/lib/libc/arch/m68k/sys/exect.S Tue Jul 16 22:20:35 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: exect.S,v 1.7 2003/08/07 16:42:14 agc Exp $ */
+/* $NetBSD: exect.S,v 1.8 2013/07/16 22:20:35 matt Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -40,11 +40,11 @@
#if 0
RCSID("from: @(#)exect.s 5.1 (Berkeley) 5/12/90")
#else
- RCSID("$NetBSD: exect.S,v 1.7 2003/08/07 16:42:14 agc Exp $")
+ RCSID("$NetBSD: exect.S,v 1.8 2013/07/16 22:20:35 matt Exp $")
#endif
#endif /* LIBC_SCCS and not lint */
ENTRY(exect)
- movl #SYS_execve,%d0
- trap #0
- jra PIC_PLT(CERROR) /* exect(file, argv, env) */
+ SYSTRAP(execve)
+ jbra CERROR /* exect(file, argv, env) */
+END(exect)
diff -r 8357071af8f8 -r 725dc55b5511 lib/libc/arch/m68k/sys/syscall.S
--- a/lib/libc/arch/m68k/sys/syscall.S Tue Jul 16 22:19:37 2013 +0000
+++ b/lib/libc/arch/m68k/sys/syscall.S Tue Jul 16 22:20:35 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: syscall.S,v 1.7 2003/08/07 16:42:14 agc Exp $ */
+/* $NetBSD: syscall.S,v 1.8 2013/07/16 22:20:35 matt Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -39,14 +39,13 @@
#if 0
RCSID("from: @(#)syscall.s 5.1 (Berkeley) 5/12/90")
#else
- RCSID("$NetBSD: syscall.S,v 1.7 2003/08/07 16:42:14 agc Exp $")
+ RCSID("$NetBSD: syscall.S,v 1.8 2013/07/16 22:20:35 matt Exp $")
#endif
#endif /* LIBC_SCCS and not lint */
ENTRY(syscall)
clrl %d0
trap #0
- jcs err
+ jcc CERROR
rts
-err:
- jra PIC_PLT(CERROR)
+END(syscall)
Home |
Main Index |
Thread Index |
Old Index