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 Replace boiler-plate code sequences wi...
details: https://anonhg.NetBSD.org/src/rev/d064353e5c0d
branches: trunk
changeset: 501960:d064353e5c0d
user: bjh21 <bjh21%NetBSD.org@localhost>
date: Tue Jan 09 21:19:33 2001 +0000
description:
Replace boiler-plate code sequences with macro invocations from SYS.h.
diffstat:
lib/libc/arch/arm/sys/__sigreturn14.S | 9 ++-------
lib/libc/arch/arm/sys/__syscall.S | 11 ++---------
lib/libc/arch/arm/sys/exect.S | 11 ++---------
lib/libc/arch/arm/sys/syscall.S | 11 ++---------
4 files changed, 8 insertions(+), 34 deletions(-)
diffs (86 lines):
diff -r 1b1fac8b48b9 -r d064353e5c0d lib/libc/arch/arm/sys/__sigreturn14.S
--- a/lib/libc/arch/arm/sys/__sigreturn14.S Tue Jan 09 20:51:26 2001 +0000
+++ b/lib/libc/arch/arm/sys/__sigreturn14.S Tue Jan 09 21:19:33 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: __sigreturn14.S,v 1.1 2000/12/29 20:14:01 bjh21 Exp $ */
+/* $NetBSD: __sigreturn14.S,v 1.2 2001/01/09 21:19:33 bjh21 Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -41,9 +41,4 @@
* We must preserve the state of the registers as the user has set them up.
*/
-SYSCALL(__sigreturn14)
-#ifdef __APCS_26__
- movs r15, r14
-#else
- mov r15, r14
-#endif
+RSYSCALL(__sigreturn14)
diff -r 1b1fac8b48b9 -r d064353e5c0d lib/libc/arch/arm/sys/__syscall.S
--- a/lib/libc/arch/arm/sys/__syscall.S Tue Jan 09 20:51:26 2001 +0000
+++ b/lib/libc/arch/arm/sys/__syscall.S Tue Jan 09 21:19:33 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: __syscall.S,v 1.2 2001/01/09 19:47:27 bjh21 Exp $ */
+/* $NetBSD: __syscall.S,v 1.3 2001/01/09 21:19:33 bjh21 Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -37,11 +37,4 @@
#include "SYS.h"
-ENTRY(__syscall)
- SYSTRAP(__syscall)
- bcs cerror
-#ifdef __APCS_26__
- movs pc, lr
-#else
- mov pc, lr
-#endif
+RSYSCALL(__syscall)
diff -r 1b1fac8b48b9 -r d064353e5c0d lib/libc/arch/arm/sys/exect.S
--- a/lib/libc/arch/arm/sys/exect.S Tue Jan 09 20:51:26 2001 +0000
+++ b/lib/libc/arch/arm/sys/exect.S Tue Jan 09 21:19:33 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: exect.S,v 1.2 2001/01/09 19:47:27 bjh21 Exp $ */
+/* $NetBSD: exect.S,v 1.3 2001/01/09 21:19:33 bjh21 Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -37,11 +37,4 @@
#include "SYS.h"
-ENTRY(exect)
- SYSTRAP(execve)
- bcs cerror
-#ifdef __APCS_26__
- mov r15, r14
-#else
- mov r15, r14
-#endif
+PSEUDO(exect,execve)
diff -r 1b1fac8b48b9 -r d064353e5c0d lib/libc/arch/arm/sys/syscall.S
--- a/lib/libc/arch/arm/sys/syscall.S Tue Jan 09 20:51:26 2001 +0000
+++ b/lib/libc/arch/arm/sys/syscall.S Tue Jan 09 21:19:33 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: syscall.S,v 1.2 2001/01/09 19:47:28 bjh21 Exp $ */
+/* $NetBSD: syscall.S,v 1.3 2001/01/09 21:19:33 bjh21 Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -37,11 +37,4 @@
#include "SYS.h"
-ENTRY(syscall)
- SYSTRAP(syscall)
- bcs cerror
-#ifdef __APCS_26__
- movs r15, r14
-#else
- mov r15, r14
-#endif
+RSYSCALL(syscall)
Home |
Main Index |
Thread Index |
Old Index