Source-Changes-HG archive

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

[src/netbsd-1-6]: src/lib/libc/arch/powerpc/sys Pull up revision 1.6 (request...



details:   https://anonhg.NetBSD.org/src/rev/41850ffcdefb
branches:  netbsd-1-6
changeset: 531437:41850ffcdefb
user:      tron <tron%NetBSD.org@localhost>
date:      Fri Jul 23 13:55:35 2004 +0000

description:
Pull up revision 1.6 (requested by skrll in ticket #1725):
Convert to use register prefixes.  (0 -> %r0, etc.)

diffstat:

 lib/libc/arch/powerpc/sys/cerror.S |  40 +++++++++++++++++++-------------------
 1 files changed, 20 insertions(+), 20 deletions(-)

diffs (59 lines):

diff -r 8af0dd834b7d -r 41850ffcdefb lib/libc/arch/powerpc/sys/cerror.S
--- a/lib/libc/arch/powerpc/sys/cerror.S        Fri Jul 23 13:55:29 2004 +0000
+++ b/lib/libc/arch/powerpc/sys/cerror.S        Fri Jul 23 13:55:35 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cerror.S,v 1.5 2000/01/27 14:58:48 kleink Exp $        */
+/*     $NetBSD: cerror.S,v 1.5.8.1 2004/07/23 13:55:35 tron Exp $      */
 
 #include <machine/asm.h>
 #include "SYS.h"
@@ -9,30 +9,30 @@
 
 ENTRY(__cerror)
 #ifdef _REENTRANT
-       mflr    0
-       stwu    1,-16(1)                # allocate new stack frame
-       stw     0,20(1)
-       stw     31,8(1)
-       mr      31,3                    # stash away in callee-saved register
+       mflr    %r0
+       stwu    %r1,-16(%r1)            # allocate new stack frame
+       stw     %r0,20(%r1)
+       stw     %r31,8(%r1)
+       mr      %r31,%r3                # stash away in callee-saved register
        bl      PIC_PLT(_C_LABEL(__errno))
-       stw     31,0(3)
-       lwz     0,20(1)
-       lwz     31,8(1)
-       mtlr    0
-       la      1,16(1)
+       stw     %r31,0(%r3)
+       lwz     %r0,20(%r1)
+       lwz     %r31,8(%r1)
+       mtlr    %r0
+       la      %r1,16(%r1)
 #else
 #ifdef PIC
-       mflr    10
+       mflr    %r10
        bl      _GLOBAL_OFFSET_TABLE_@local-4
-       mflr    4
-       lwz     4,_C_LABEL(errno)@got(4)
-       stw     3,0(4)
-       mtlr    10
+       mflr    %r4
+       lwz     %r4,_C_LABEL(errno)@got(%r4)
+       stw     %r3,0(%r4)
+       mtlr    %r10
 #else
-       lis     4,_C_LABEL(errno)@ha
-       stw     3,_C_LABEL(errno)@l(4)
+       lis     %r4,_C_LABEL(errno)@ha
+       stw     %r3,_C_LABEL(errno)@l(%r4)
 #endif /* PIC */
 #endif /* _REENTRANT */
-       li      3,-1
-       li      4,-1
+       li      %r3,-1
+       li      %r4,-1
        blr



Home | Main Index | Thread Index | Old Index