Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-4]: src/lib/libc/arch/arm32/sys Pull up revision 1.5 (requested...
details: https://anonhg.NetBSD.org/src/rev/e14e60e3193e
branches: netbsd-1-4
changeset: 470219:e14e60e3193e
user: he <he%NetBSD.org@localhost>
date: Mon Jan 31 19:26:57 2000 +0000
description:
Pull up revision 1.5 (requested by kleink):
Support *__errno() indirection.
diffstat:
lib/libc/arch/arm32/sys/ptrace.S | 18 ++++++++++++++----
1 files changed, 14 insertions(+), 4 deletions(-)
diffs (50 lines):
diff -r afc4960caa39 -r e14e60e3193e lib/libc/arch/arm32/sys/ptrace.S
--- a/lib/libc/arch/arm32/sys/ptrace.S Mon Jan 31 19:26:38 2000 +0000
+++ b/lib/libc/arch/arm32/sys/ptrace.S Mon Jan 31 19:26:57 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ptrace.S,v 1.4 1997/10/06 00:07:15 mark Exp $ */
+/* $NetBSD: ptrace.S,v 1.4.4.1 2000/01/31 19:26:57 he Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -38,6 +38,13 @@
#include "SYS.h"
ENTRY(ptrace)
+#ifdef _REENTRANT
+ stmfd sp!, {r0, r1, lr}
+ bl _C_LABEL(__errno)
+ mov r1, #0x00000000
+ str r1, [r0]
+ ldmfd sp!, {r0, r1, lr}
+#else
stmfd sp!, {r0, r1}
#ifdef PIC
/* Setup the GOT */
@@ -48,20 +55,23 @@
ldr r1, [r0, r1]
#else
ldr r1, Lerrno
-#endif
+#endif /* PIC */
mov r0, #0x00000000
str r0, [r1]
ldmfd sp!, {r0, r1}
+#endif /* _REENTRANT */
swi SYS_ptrace
bcs cerror
- mov r15, r14
+ mov pc, lr
+#ifndef _REENTRANT
#ifdef PIC
.align 0
got:
.word __GLOBAL_OFFSET_TABLE_ + (. - (L1+4))
-#endif
+#endif /* PIC */
Lerrno:
.word _errno
+#endif /* !_REENTRANT */
Home |
Main Index |
Thread Index |
Old Index