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.6 (requested...



details:   https://anonhg.NetBSD.org/src/rev/afc4960caa39
branches:  netbsd-1-4
changeset: 470218:afc4960caa39
user:      he <he%NetBSD.org@localhost>
date:      Mon Jan 31 19:26:38 2000 +0000

description:
Pull up revision 1.6 (requested by kleink):
  Support *__errno() indirection.

diffstat:

 lib/libc/arch/arm32/sys/cerror.S |  18 ++++++++++++++----
 1 files changed, 14 insertions(+), 4 deletions(-)

diffs (49 lines):

diff -r c0f3f41d92ee -r afc4960caa39 lib/libc/arch/arm32/sys/cerror.S
--- a/lib/libc/arch/arm32/sys/cerror.S  Mon Jan 31 19:22:56 2000 +0000
+++ b/lib/libc/arch/arm32/sys/cerror.S  Mon Jan 31 19:26:38 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cerror.S,v 1.5 1997/10/17 19:57:17 mark Exp $  */
+/*     $NetBSD: cerror.S,v 1.5.4.1 2000/01/31 19:26:38 he Exp $        */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -38,6 +38,15 @@
 #include "SYS.h"
 
 ASENTRY(cerror)
+#ifdef _REENTRANT
+       stmfd   sp!, {r4, lr}
+       mov     r4, r0
+       bl      _C_LABEL(__errno)
+       str     r4, [r0]
+       mvn     r0, #0x00000000
+       mvn     r1, #0x00000000
+       ldmfd   sp!, {r4, pc}
+#else
 #ifdef PIC
        /* Setup the GOT */
        ldr     r3, got
@@ -47,19 +56,20 @@
        ldr     r1, [r3, r1]
 #else
        ldr     r1, Lerrno
-#endif
+#endif /* PIC */
        str     r0, [r1]
        mvn     r0, #0x00000000
        mvn     r1, #0x00000000
-       mov     r15, r14
+       mov     pc, lr
 
 #ifdef PIC
        .align  0
 got:
        .word   __GLOBAL_OFFSET_TABLE_ + (. - (L1+4))
-#endif
+#endif /* PIC */
 
        .globl  _errno
 
 Lerrno:
        .word   _errno
+#endif /* _REENTRANT */



Home | Main Index | Thread Index | Old Index