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 We can shave off a register-register ...
details: https://anonhg.NetBSD.org/src/rev/8bf06168cc98
branches: trunk
changeset: 472577:8bf06168cc98
user: kleink <kleink%NetBSD.org@localhost>
date: Sun May 02 20:52:02 1999 +0000
description:
We can shave off a register-register move when using the SVR4 ABI: __errno()
will return its pointer result in a0.
diffstat:
lib/libc/arch/m68k/sys/Ovfork.S | 8 ++++++--
lib/libc/arch/m68k/sys/__vfork14.S | 8 ++++++--
lib/libc/arch/m68k/sys/cerror.S | 6 ++++--
lib/libc/arch/m68k/sys/ptrace.S | 6 ++++--
4 files changed, 20 insertions(+), 8 deletions(-)
diffs (118 lines):
diff -r af64b4867b66 -r 8bf06168cc98 lib/libc/arch/m68k/sys/Ovfork.S
--- a/lib/libc/arch/m68k/sys/Ovfork.S Sun May 02 20:34:04 1999 +0000
+++ b/lib/libc/arch/m68k/sys/Ovfork.S Sun May 02 20:52:02 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: Ovfork.S,v 1.8 1998/12/02 19:29:57 thorpej Exp $ */
+/* $NetBSD: Ovfork.S,v 1.9 1999/05/02 20:52:02 kleink Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -43,7 +43,7 @@
#if 0
RCSID("from: @(#)Ovfork.s 5.1 (Berkeley) 5/12/90")
#else
- RCSID("$NetBSD: Ovfork.S,v 1.8 1998/12/02 19:29:57 thorpej Exp $")
+ RCSID("$NetBSD: Ovfork.S,v 1.9 1999/05/02 20:52:02 kleink Exp $")
#endif
#endif /* LIBC_SCCS and not lint */
@@ -87,8 +87,12 @@
#else
jbsr _C_LABEL(__errno)
#endif /* PIC */
+#ifdef __SVR4_ABI__
+ movl sp@+,a0@
+#else
movl d0,a1
movl sp@+,a1@
+#endif /* __SVR4_ABI__ */
movl sp@+,a0
#else
.globl _C_LABEL(errno)
diff -r af64b4867b66 -r 8bf06168cc98 lib/libc/arch/m68k/sys/__vfork14.S
--- a/lib/libc/arch/m68k/sys/__vfork14.S Sun May 02 20:34:04 1999 +0000
+++ b/lib/libc/arch/m68k/sys/__vfork14.S Sun May 02 20:52:02 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: __vfork14.S,v 1.3 1998/10/06 19:05:26 kleink Exp $ */
+/* $NetBSD: __vfork14.S,v 1.4 1999/05/02 20:52:03 kleink Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -43,7 +43,7 @@
#if 0
RCSID("from: @(#)Ovfork.s 5.1 (Berkeley) 5/12/90")
#else
- RCSID("$NetBSD: __vfork14.S,v 1.3 1998/10/06 19:05:26 kleink Exp $")
+ RCSID("$NetBSD: __vfork14.S,v 1.4 1999/05/02 20:52:03 kleink Exp $")
#endif
#endif /* LIBC_SCCS and not lint */
@@ -84,8 +84,12 @@
#else
jbsr _C_LABEL(__errno)
#endif /* PIC */
+#ifdef __SVR4_ABI__
+ movl sp@+,a0@
+#else
movl d0,a1
movl sp@+,a1@
+#endif
movl sp@+,a0
#else
.globl _C_LABEL(errno)
diff -r af64b4867b66 -r 8bf06168cc98 lib/libc/arch/m68k/sys/cerror.S
--- a/lib/libc/arch/m68k/sys/cerror.S Sun May 02 20:34:04 1999 +0000
+++ b/lib/libc/arch/m68k/sys/cerror.S Sun May 02 20:52:02 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cerror.S,v 1.10 1999/04/29 15:37:21 kleink Exp $ */
+/* $NetBSD: cerror.S,v 1.11 1999/05/02 20:52:03 kleink Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -43,7 +43,7 @@
#if 0
RCSID("from: @(#)cerror.s 5.1 (Berkeley) 5/12/90")
#else
- RCSID("$NetBSD: cerror.S,v 1.10 1999/04/29 15:37:21 kleink Exp $")
+ RCSID("$NetBSD: cerror.S,v 1.11 1999/05/02 20:52:03 kleink Exp $")
#endif
#endif /* LIBC_SCCS and not lint */
@@ -63,7 +63,9 @@
#else
jbsr _C_LABEL(__errno)
#endif
+#ifndef __SVR4_ABI__
movl d0,a0
+#endif
movl sp@+,a0@
#else
#ifdef PIC
diff -r af64b4867b66 -r 8bf06168cc98 lib/libc/arch/m68k/sys/ptrace.S
--- a/lib/libc/arch/m68k/sys/ptrace.S Sun May 02 20:34:04 1999 +0000
+++ b/lib/libc/arch/m68k/sys/ptrace.S Sun May 02 20:52:02 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ptrace.S,v 1.6 1999/01/14 22:48:20 kleink Exp $ */
+/* $NetBSD: ptrace.S,v 1.7 1999/05/02 20:52:03 kleink Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -43,7 +43,7 @@
#if 0
RCSID("from: @(#)ptrace.s 5.1 (Berkeley) 5/12/90")
#else
- RCSID("$NetBSD: ptrace.S,v 1.6 1999/01/14 22:48:20 kleink Exp $")
+ RCSID("$NetBSD: ptrace.S,v 1.7 1999/05/02 20:52:03 kleink Exp $")
#endif
#endif /* LIBC_SCCS and not lint */
@@ -63,7 +63,9 @@
#else
jbsr _C_LABEL(__errno)
#endif /* PIC */
+#ifndef __SVR4_ABI__
movl d0,a0
+#endif
clrl a0@
#else
#ifdef PIC
Home |
Main Index |
Thread Index |
Old Index