Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/arch/arm/sys Use SYSTRAP() everywhere rather than c...



details:   https://anonhg.NetBSD.org/src/rev/45da39d9aa91
branches:  trunk
changeset: 501955:45da39d9aa91
user:      bjh21 <bjh21%NetBSD.org@localhost>
date:      Tue Jan 09 19:47:27 2001 +0000

description:
Use SYSTRAP() everywhere rather than coding SWI instructions directly.

diffstat:

 lib/libc/arch/arm/sys/Ovfork.S      |  4 ++--
 lib/libc/arch/arm/sys/__syscall.S   |  4 ++--
 lib/libc/arch/arm/sys/__vfork14.S   |  4 ++--
 lib/libc/arch/arm/sys/brk.S         |  4 ++--
 lib/libc/arch/arm/sys/exect.S       |  4 ++--
 lib/libc/arch/arm/sys/pipe.S        |  4 ++--
 lib/libc/arch/arm/sys/ptrace.S      |  4 ++--
 lib/libc/arch/arm/sys/sbrk.S        |  4 ++--
 lib/libc/arch/arm/sys/sigpending.S  |  4 ++--
 lib/libc/arch/arm/sys/sigprocmask.S |  4 ++--
 lib/libc/arch/arm/sys/sigsuspend.S  |  4 ++--
 lib/libc/arch/arm/sys/syscall.S     |  4 ++--
 12 files changed, 24 insertions(+), 24 deletions(-)

diffs (216 lines):

diff -r b6420d57d181 -r 45da39d9aa91 lib/libc/arch/arm/sys/Ovfork.S
--- a/lib/libc/arch/arm/sys/Ovfork.S    Tue Jan 09 19:43:15 2001 +0000
+++ b/lib/libc/arch/arm/sys/Ovfork.S    Tue Jan 09 19:47:27 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: Ovfork.S,v 1.2 2001/01/09 19:30:38 bjh21 Exp $ */
+/*     $NetBSD: Ovfork.S,v 1.3 2001/01/09 19:47:27 bjh21 Exp $ */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -52,7 +52,7 @@
 
 ENTRY(vfork)
        mov     r2, r14
-       swi     SYS_vfork
+       SYSTRAP(vfork)
        bcs     cerror
        sub     r1, r1, #1      /* r1 == 0xffffffff if parent, 0 if child */
        and     r0, r0, r1      /* r0 == 0 if child, else unchanged */
diff -r b6420d57d181 -r 45da39d9aa91 lib/libc/arch/arm/sys/__syscall.S
--- a/lib/libc/arch/arm/sys/__syscall.S Tue Jan 09 19:43:15 2001 +0000
+++ b/lib/libc/arch/arm/sys/__syscall.S Tue Jan 09 19:47:27 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: __syscall.S,v 1.1 2000/12/29 20:14:01 bjh21 Exp $      */
+/*     $NetBSD: __syscall.S,v 1.2 2001/01/09 19:47:27 bjh21 Exp $      */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -38,7 +38,7 @@
 #include "SYS.h"
 
 ENTRY(__syscall)
-       swi     SYS___syscall
+       SYSTRAP(__syscall)
        bcs     cerror
 #ifdef __APCS_26__
        movs    pc, lr
diff -r b6420d57d181 -r 45da39d9aa91 lib/libc/arch/arm/sys/__vfork14.S
--- a/lib/libc/arch/arm/sys/__vfork14.S Tue Jan 09 19:43:15 2001 +0000
+++ b/lib/libc/arch/arm/sys/__vfork14.S Tue Jan 09 19:47:27 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: __vfork14.S,v 1.2 2001/01/09 19:30:38 bjh21 Exp $      */
+/*     $NetBSD: __vfork14.S,v 1.3 2001/01/09 19:47:27 bjh21 Exp $      */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -49,7 +49,7 @@
 
 ENTRY(__vfork14)
        mov     r2, r14
-       swi     SYS___vfork14
+       SYSTRAP(__vfork14)
        bcs     cerror
        sub     r1, r1, #1      /* r1 == 0xffffffff if parent, 0 if child */
        and     r0, r0, r1      /* r0 == 0 if child, else unchanged */
diff -r b6420d57d181 -r 45da39d9aa91 lib/libc/arch/arm/sys/brk.S
--- a/lib/libc/arch/arm/sys/brk.S       Tue Jan 09 19:43:15 2001 +0000
+++ b/lib/libc/arch/arm/sys/brk.S       Tue Jan 09 19:47:27 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: brk.S,v 1.1 2000/12/29 20:14:02 bjh21 Exp $    */
+/*     $NetBSD: brk.S,v 1.2 2001/01/09 19:47:27 bjh21 Exp $    */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -75,7 +75,7 @@
        cmp     r0, r1
        movlt   r0, r1
        mov     r2, r0
-       swi     SYS_break
+       SYSTRAP(break)
        bcs     cerror
 
 #ifdef PIC
diff -r b6420d57d181 -r 45da39d9aa91 lib/libc/arch/arm/sys/exect.S
--- a/lib/libc/arch/arm/sys/exect.S     Tue Jan 09 19:43:15 2001 +0000
+++ b/lib/libc/arch/arm/sys/exect.S     Tue Jan 09 19:47:27 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: exect.S,v 1.1 2000/12/29 20:14:02 bjh21 Exp $  */
+/*     $NetBSD: exect.S,v 1.2 2001/01/09 19:47:27 bjh21 Exp $  */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -38,7 +38,7 @@
 #include "SYS.h"
 
 ENTRY(exect)
-       swi     SYS_execve
+       SYSTRAP(execve)
        bcs     cerror
 #ifdef __APCS_26__
        mov     r15, r14
diff -r b6420d57d181 -r 45da39d9aa91 lib/libc/arch/arm/sys/pipe.S
--- a/lib/libc/arch/arm/sys/pipe.S      Tue Jan 09 19:43:15 2001 +0000
+++ b/lib/libc/arch/arm/sys/pipe.S      Tue Jan 09 19:47:27 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pipe.S,v 1.1 2000/12/29 20:14:03 bjh21 Exp $   */
+/*     $NetBSD: pipe.S,v 1.2 2001/01/09 19:47:27 bjh21 Exp $   */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -43,7 +43,7 @@
 
 ENTRY(_pipe)
        mov     r2, r0
-       swi     SYS_pipe
+       SYSTRAP(pipe)
        bcs     cerror
        str     r0, [r2, #0x0000]
        str     r1, [r2, #0x0004]
diff -r b6420d57d181 -r 45da39d9aa91 lib/libc/arch/arm/sys/ptrace.S
--- a/lib/libc/arch/arm/sys/ptrace.S    Tue Jan 09 19:43:15 2001 +0000
+++ b/lib/libc/arch/arm/sys/ptrace.S    Tue Jan 09 19:47:27 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ptrace.S,v 1.1 2000/12/29 20:14:03 bjh21 Exp $ */
+/*     $NetBSD: ptrace.S,v 1.2 2001/01/09 19:47:28 bjh21 Exp $ */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -61,7 +61,7 @@
        ldmfd   sp!, {r0, r1}
 #endif /* _REENTRANT */
 
-       swi     SYS_ptrace
+       SYSTRAP(ptrace)
        bcs     cerror
 #ifdef __APCS_26__
        movs    pc, lr
diff -r b6420d57d181 -r 45da39d9aa91 lib/libc/arch/arm/sys/sbrk.S
--- a/lib/libc/arch/arm/sys/sbrk.S      Tue Jan 09 19:43:15 2001 +0000
+++ b/lib/libc/arch/arm/sys/sbrk.S      Tue Jan 09 19:47:27 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sbrk.S,v 1.1 2000/12/29 20:14:03 bjh21 Exp $   */
+/*     $NetBSD: sbrk.S,v 1.2 2001/01/09 19:47:28 bjh21 Exp $   */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -70,7 +70,7 @@
        /* Calculate new value */
        mov     r3, r0
        add     r0, r0, r1
-       swi     SYS_break
+       SYSTRAP(break)
        bcs     cerror
 
        /* Store new curbrk value */
diff -r b6420d57d181 -r 45da39d9aa91 lib/libc/arch/arm/sys/sigpending.S
--- a/lib/libc/arch/arm/sys/sigpending.S        Tue Jan 09 19:43:15 2001 +0000
+++ b/lib/libc/arch/arm/sys/sigpending.S        Tue Jan 09 19:47:27 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sigpending.S,v 1.1 2000/12/29 20:14:05 bjh21 Exp $     */
+/*     $NetBSD: sigpending.S,v 1.2 2001/01/09 19:47:28 bjh21 Exp $     */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -42,7 +42,7 @@
 
 ENTRY(sigpending)
        mov     r2, r0
-       swi     SYS_compat_13_sigpending13
+       SYSTRAP(compat_13_sigpending13)
        bcs     cerror
        str     r0, [r2]
        mov     r0, #0x00000000
diff -r b6420d57d181 -r 45da39d9aa91 lib/libc/arch/arm/sys/sigprocmask.S
--- a/lib/libc/arch/arm/sys/sigprocmask.S       Tue Jan 09 19:43:15 2001 +0000
+++ b/lib/libc/arch/arm/sys/sigprocmask.S       Tue Jan 09 19:47:27 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sigprocmask.S,v 1.1 2000/12/29 20:14:05 bjh21 Exp $    */
+/*     $NetBSD: sigprocmask.S,v 1.2 2001/01/09 19:47:28 bjh21 Exp $    */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -45,7 +45,7 @@
        moveq   r0, #0x00000001
        moveq   r1, #0x00000000
        ldrne   r1, [r1]
-       swi     SYS_compat_13_sigprocmask13
+       SYSTRAP(compat_13_sigprocmask13)
        bcs     cerror
        teq     r2, #0x00000000
        strne   r0, [r2]
diff -r b6420d57d181 -r 45da39d9aa91 lib/libc/arch/arm/sys/sigsuspend.S
--- a/lib/libc/arch/arm/sys/sigsuspend.S        Tue Jan 09 19:43:15 2001 +0000
+++ b/lib/libc/arch/arm/sys/sigsuspend.S        Tue Jan 09 19:47:27 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sigsuspend.S,v 1.1 2000/12/29 20:14:05 bjh21 Exp $     */
+/*     $NetBSD: sigsuspend.S,v 1.2 2001/01/09 19:47:28 bjh21 Exp $     */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -42,7 +42,7 @@
 
 ENTRY(sigsuspend)
        ldr     r0, [r0]
-       swi     SYS_compat_13_sigsuspend13
+       SYSTRAP(compat_13_sigsuspend13)
        bcs     cerror
        mov     r0, #0x00000000
 #ifdef __APCS_26__
diff -r b6420d57d181 -r 45da39d9aa91 lib/libc/arch/arm/sys/syscall.S
--- a/lib/libc/arch/arm/sys/syscall.S   Tue Jan 09 19:43:15 2001 +0000
+++ b/lib/libc/arch/arm/sys/syscall.S   Tue Jan 09 19:47:27 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: syscall.S,v 1.1 2000/12/29 20:14:05 bjh21 Exp $        */
+/*     $NetBSD: syscall.S,v 1.2 2001/01/09 19:47:28 bjh21 Exp $        */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -38,7 +38,7 @@
 #include "SYS.h"
 
 ENTRY(syscall)
-       swi     0x00000000
+       SYSTRAP(syscall)
        bcs     cerror
 #ifdef __APCS_26__
        movs    r15, r14



Home | Main Index | Thread Index | Old Index