Source-Changes-HG archive

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

[src/trunk]: src Change to use a register prefix.



details:   https://anonhg.NetBSD.org/src/rev/954735fe5e14
branches:  trunk
changeset: 522678:954735fe5e14
user:      matt <matt%NetBSD.org@localhost>
date:      Sun Feb 24 01:06:18 2002 +0000

description:
Change to use a register prefix.

diffstat:

 lib/csu/vax/crt0.c                       |   18 +-
 lib/csu/vax_elf/crt0.c                   |   18 +-
 lib/libc/arch/vax/gen/__setjmp14.S       |   52 +-
 lib/libc/arch/vax/gen/__sigsetjmp14.S    |   12 +-
 lib/libc/arch/vax/gen/_setjmp.S          |   40 +-
 lib/libc/arch/vax/gen/alloca.S           |   16 +-
 lib/libc/arch/vax/gen/bswap64.S          |   20 +-
 lib/libc/arch/vax/gen/byte_swap_2.S      |    8 +-
 lib/libc/arch/vax/gen/byte_swap_4.S      |    8 +-
 lib/libc/arch/vax/gen/fabs.S             |    6 +-
 lib/libc/arch/vax/gen/ldexp.S            |   26 +-
 lib/libc/arch/vax/gen/modf.S             |    8 +-
 lib/libc/arch/vax/gen/setjmp.S           |   50 +-
 lib/libc/arch/vax/gen/sigsetjmp.S        |   12 +-
 lib/libc/arch/vax/gen/udiv.S             |   48 +-
 lib/libc/arch/vax/gen/urem.S             |   50 +-
 lib/libc/arch/vax/string/bcmp.S          |   20 +-
 lib/libc/arch/vax/string/bcopy.S         |   48 +-
 lib/libc/arch/vax/string/bzero.S         |   14 +-
 lib/libc/arch/vax/string/ffs.S           |    8 +-
 lib/libc/arch/vax/string/index.S         |   16 +-
 lib/libc/arch/vax/string/memcmp.S        |   32 +-
 lib/libc/arch/vax/string/memcpy.S        |   58 +-
 lib/libc/arch/vax/string/memmove.S       |   58 +-
 lib/libc/arch/vax/string/memset.S        |   18 +-
 lib/libc/arch/vax/sys/Ovfork.S           |   26 +-
 lib/libc/arch/vax/sys/__clone.S          |   22 +-
 lib/libc/arch/vax/sys/__syscall.S        |   10 +-
 lib/libc/arch/vax/sys/__vfork14.S        |   26 +-
 lib/libc/arch/vax/sys/brk.S              |   10 +-
 lib/libc/arch/vax/sys/cerror.S           |   12 +-
 lib/libc/arch/vax/sys/execl.S            |    6 +-
 lib/libc/arch/vax/sys/execle.S           |   10 +-
 lib/libc/arch/vax/sys/execlp.S           |    6 +-
 lib/libc/arch/vax/sys/fork.S             |    6 +-
 lib/libc/arch/vax/sys/pipe.S             |   10 +-
 lib/libc/arch/vax/sys/ptrace.S           |    4 +-
 lib/libc/arch/vax/sys/sbrk.S             |   12 +-
 lib/libc/arch/vax/sys/sigpending.S       |    6 +-
 lib/libc/arch/vax/sys/sigprocmask.S      |   16 +-
 lib/libc/arch/vax/sys/sigsuspend.S       |    6 +-
 lib/libc/arch/vax/sys/syscall.S          |    8 +-
 lib/libm/arch/vax/n_argred.S             |  472 +++++++++++++++---------------
 lib/libm/arch/vax/n_atan2.S              |  160 +++++-----
 lib/libm/arch/vax/n_cabs.S               |   98 +++---
 lib/libm/arch/vax/n_cbrt.S               |   68 ++--
 lib/libm/arch/vax/n_infnan.S             |    6 +-
 lib/libm/arch/vax/n_sincos.S             |   32 +-
 lib/libm/arch/vax/n_sqrt.S               |   64 ++--
 lib/libm/arch/vax/n_support.S            |  166 +++++-----
 lib/libm/arch/vax/n_tan.S                |   44 +-
 libexec/ld.aout_so/arch/vax/mdprologue.S |   32 +-
 libexec/ld.elf_so/arch/vax/rtld_start.S  |   32 +-
 53 files changed, 1017 insertions(+), 1017 deletions(-)

diffs (truncated from 3726 to 300 lines):

diff -r 41ace68dbf0d -r 954735fe5e14 lib/csu/vax/crt0.c
--- a/lib/csu/vax/crt0.c        Sun Feb 24 01:04:23 2002 +0000
+++ b/lib/csu/vax/crt0.c        Sun Feb 24 01:06:18 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: crt0.c,v 1.12 2001/07/26 22:55:12 wiz Exp $    */
+/*     $NetBSD: crt0.c,v 1.13 2002/02/24 01:06:18 matt Exp $   */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -54,7 +54,7 @@
        asm("   .type start,@function");
        asm("   start:");
        asm("           .word 0x0101");         /* two nops just in case */
-       asm("           pushl sp");             /* no registers to save */
+       asm("           pushl %sp");            /* no registers to save */
        asm("           calls $1,___start");    /* do the real start */
        asm("           halt");
 
@@ -100,14 +100,14 @@
 #ifdef DYNAMIC
        asm("   ___syscall:");
        asm("           .word 0");              /* no registers to save */
-       asm("           addl2 $4,ap");          /* n-1 args to syscall */
-       asm("           movl (ap),r0");         /* get syscall number */
-       asm("           subl3 $1,-4(ap),(ap)"); /* n-1 args to syscall */
-       asm("           chmk r0");              /* do system call */
+       asm("           addl2 $4,%ap");         /* n-1 args to syscall */
+       asm("           movl (%ap),r0");        /* get syscall number */
+       asm("           subl3 $1,-4(%ap),(%ap)"); /* n-1 args to syscall */
+       asm("           chmk %r0");             /* do system call */
        asm("           jcc 1f");               /* check error */
-       asm("           mnegl $1,r0");
+       asm("           mnegl $1,%r0");
        asm("           ret");
-       asm("   1:      movpsl -(sp)");         /* flush the icache */
+       asm("   1:      movpsl -(%sp)");        /* flush the icache */
        asm("           pushab 2f");            /* by issuing an REI */
        asm("           rei");
        asm("   2:      ret");
@@ -117,7 +117,7 @@
 #include "common.c"
 
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: crt0.c,v 1.12 2001/07/26 22:55:12 wiz Exp $");
+__RCSID("$NetBSD: crt0.c,v 1.13 2002/02/24 01:06:18 matt Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #ifdef MCRT0
diff -r 41ace68dbf0d -r 954735fe5e14 lib/csu/vax_elf/crt0.c
--- a/lib/csu/vax_elf/crt0.c    Sun Feb 24 01:04:23 2002 +0000
+++ b/lib/csu/vax_elf/crt0.c    Sun Feb 24 01:06:18 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: crt0.c,v 1.6 2001/09/08 18:59:20 matt Exp $ */
+/* $NetBSD: crt0.c,v 1.7 2002/02/24 01:06:18 matt Exp $ */
 
 /*
  * Copyright (c) 1999 Matt Thomas
@@ -48,13 +48,13 @@
 __start:
 _start:
        .word   0x0101
-       pushl   r9              # ps_strings
-       pushl   r8              # obj
-       pushl   r7              # cleanup
-       movl    (r6),r0         # argc
-       pushal  8(r6)[r0]       # envp = &argv[argc + 1]
-       pushal  4(r6)           # argv
-       pushl   r0              # argc
+       pushl   %r9             # ps_strings
+       pushl   %r8             # obj
+       pushl   %r7             # cleanup
+       movl    (%r6),%r0       # argc
+       pushal  8(%r6)[%r0]     # envp = &argv[argc + 1]
+       pushal  4(%r6)          # argv
+       pushl   %r0             # argc
        calls   $6,___start
 ");
 
@@ -99,7 +99,7 @@
  * NOTE: Leave the RCS ID _after_ __start(), in case it gets placed in .text.
  */
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: crt0.c,v 1.6 2001/09/08 18:59:20 matt Exp $");
+__RCSID("$NetBSD: crt0.c,v 1.7 2002/02/24 01:06:18 matt Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include "common.c"
diff -r 41ace68dbf0d -r 954735fe5e14 lib/libc/arch/vax/gen/__setjmp14.S
--- a/lib/libc/arch/vax/gen/__setjmp14.S        Sun Feb 24 01:04:23 2002 +0000
+++ b/lib/libc/arch/vax/gen/__setjmp14.S        Sun Feb 24 01:06:18 2002 +0000
@@ -33,7 +33,7 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
        /* .asciz "@(#)setjmp.s 8.1 (Berkeley) 6/4/93" */
-       .asciz "$NetBSD: __setjmp14.S,v 1.4 2000/06/28 19:20:17 matt Exp $"
+       .asciz "$NetBSD: __setjmp14.S,v 1.5 2002/02/24 01:06:19 matt Exp $"
 #endif /* LIBC_SCCS and not lint */
 
 /*
@@ -50,48 +50,48 @@
 #include "DEFS.h"
 
 ENTRY(__setjmp14, R6)
-       movl    4(ap),r6                # construct sigcontext
-       subl2   $12,sp                  # space for current struct sigstack
-       pushl   sp                      # get current values
+       movl    4(%ap),%r6              # construct sigcontext
+       subl2   $12,%sp                 # space for current struct sigstack
+       pushl   %sp                     # get current values
        pushl   $0                      # no new values
        calls   $4,_C_LABEL(__sigaltstack14) # pop args plus signal stack value
-       movl    (sp)+,(r6)+             # save onsigstack status of caller
-       pushal  24(r6)
+       movl    (%sp)+,(%r6)+           # save onsigstack status of caller
+       pushal  24(%r6)
        pushl   $0
        pushl   $0
        calls   $3,_C_LABEL(__sigprocmask14) # get signal mask
-       addl2   $4,r6                   # skip old mask
-       movl    (ap),r0
-       moval   4(ap)[r0],(r6)+         # save sp of caller
-       movl    12(fp),(r6)+            # save frame pointer of caller
-       movl    8(fp),(r6)+             # save argument pointer of caller
-       movl    16(fp),(r6)+            # save pc of caller
-       movpsl  (r6)                    # save psl of caller
-       movw    4(fp),(r6)
-       clrl    r0
+       addl2   $4,%r6                  # skip old mask
+       movl    (%ap),%r0
+       moval   4(%ap)[%r0],(%r6)+              # save sp of caller
+       movl    12(%fp),(%r6)+          # save frame pointer of caller
+       movl    8(%fp),(%r6)+           # save argument pointer of caller
+       movl    16(%fp),(%r6)+          # save pc of caller
+       movpsl  (%r6)                   # save psl of caller
+       movw    4(%fp),(%r6)
+       clrl    %r0
        ret
 
 ENTRY(__longjmp14, 0)
-       movl    8(ap),r0                # return(v)
-       movl    4(ap),r1                # fetch buffer
-       tstl    12(r1)
+       movl    8(%ap),%r0              # return(v)
+       movl    4(%ap),%r1              # fetch buffer
+       tstl    12(%r1)
        beql    botch
 loop:
-       cmpl    12(r1),fp               # are we there yet?
+       cmpl    12(%r1),%fp             # are we there yet?
        beql    done
        blssu   botch
-       moval   20(fp),r2
-       blbc    6(fp),1f                # was r0 saved?
-       movl    r0,(r2)+
+       moval   20(%fp),%r2
+       blbc    6(%fp),1f               # was %r0 saved?
+       movl    %r0,(%r2)+
 1:
-       bbc     $1,6(fp),2f             # was r1 saved?
-       movl    r1,(r2)
+       bbc     $1,6(%fp),2f            # was %r1 saved?
+       movl    %r1,(%r2)
 2:
-       movab   loop,16(fp)
+       movab   loop,16(%fp)
        ret                             # pop another frame
 
 done:
-       pushl   r1                      # pointer to sigcontext
+       pushl   %r1                     # pointer to sigcontext
        calls   $1,_C_LABEL(__sigreturn14) # restore previous context
                                        # we should never return
 botch:
diff -r 41ace68dbf0d -r 954735fe5e14 lib/libc/arch/vax/gen/__sigsetjmp14.S
--- a/lib/libc/arch/vax/gen/__sigsetjmp14.S     Sun Feb 24 01:04:23 2002 +0000
+++ b/lib/libc/arch/vax/gen/__sigsetjmp14.S     Sun Feb 24 01:06:18 2002 +0000
@@ -32,7 +32,7 @@
  */
 
 #if defined(LIBC_SCCS) && !defined(lint)
-       .asciz "$NetBSD: __sigsetjmp14.S,v 1.2 2000/06/28 19:20:17 matt Exp $"
+       .asciz "$NetBSD: __sigsetjmp14.S,v 1.3 2002/02/24 01:06:19 matt Exp $"
 #endif /* LIBC_SCCS and not lint */
 
 /*
@@ -51,16 +51,16 @@
 #include <machine/setjmp.h>
 
 ENTRY(__sigsetjmp14, R6)
-       movl    4(ap),r0                # get env pointer
-       movl    8(ap),(_JBLEN*4)(r0)    # save "savemask"
-       tstl    8(ap)                   # do saving of signal mask?
+       movl    4(%ap),%r0              # get env pointer
+       movl    8(%ap),(_JBLEN*4)(%r0)  # save "savemask"
+       tstl    8(%ap)                  # do saving of signal mask?
        beql    L1
        jmp     _C_LABEL(__setjmp14)+2  # yep, do full setjmp
 L1:    jmp     _C_LABEL(_setjmp)+2     # nope, skip to _setjmp
 
 ENTRY(__siglongjmp14, 0)
-       movl    4(ap),r0                # get env pointer
-       tstl    (_JBLEN*4)(r0)          # test if "savemask" was set
+       movl    4(%ap),%r0              # get env pointer
+       tstl    (_JBLEN*4)(%r0)         # test if "savemask" was set
        beql    L2
        jmp     _C_LABEL(__longjmp14)+2 # yep, do full longjmp
 L2:    jmp     _C_LABEL(_longjmp)+2    # nope, skip to _longjmp
diff -r 41ace68dbf0d -r 954735fe5e14 lib/libc/arch/vax/gen/_setjmp.S
--- a/lib/libc/arch/vax/gen/_setjmp.S   Sun Feb 24 01:04:23 2002 +0000
+++ b/lib/libc/arch/vax/gen/_setjmp.S   Sun Feb 24 01:06:18 2002 +0000
@@ -33,7 +33,7 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
        /* .asciz "@(#)_setjmp.s        8.1 (Berkeley) 6/4/93" */
-       .asciz "$NetBSD: _setjmp.S,v 1.3 2000/06/28 19:20:17 matt Exp $"
+       .asciz "$NetBSD: _setjmp.S,v 1.4 2002/02/24 01:06:19 matt Exp $"
 #endif /* LIBC_SCCS and not lint */
 
 /*
@@ -50,49 +50,49 @@
 #include "DEFS.h"
 
 ENTRY(_setjmp, 0)
-       movl    4(ap),r0
-       movl    12(fp),(r0)             # save frame pointer of caller
-       movl    16(fp),4(r0)            # save pc of caller
-       clrl    r0
+       movl    4(%ap),%r0
+       movl    12(%fp),(%r0)           # save frame pointer of caller
+       movl    16(%fp),4(%r0)          # save pc of caller
+       clrl    %r0
        ret
 
 ENTRY(_longjmp, 0)
-       movl    8(ap),r0                # return(v)
-       movl    4(ap),r1                # fetch buffer
-       tstl    (r1)
+       movl    8(%ap),%r0              # return(v)
+       movl    4(%ap),%r1              # fetch buffer
+       tstl    (%r1)
        beql    botch
 loop:
-       bitw    $1,6(fp)                # r0 saved?
+       bitw    $1,6(%fp)               # %r0 saved?
        beql    1f
-       movl    r0,20(fp)
-       bitw    $2,6(fp)                # was r1 saved?
+       movl    %r0,20(%fp)
+       bitw    $2,6(%fp)               # was %r1 saved?
        beql    2f
-       movl    r1,24(fp)
+       movl    %r1,24(%fp)
        brb     2f
 1:
-       bitw    $2,6(fp)                # was r1 saved?
+       bitw    $2,6(%fp)               # was %r1 saved?
        beql    2f
-       movl    r1,20(fp)
+       movl    %r1,20(%fp)
 2:
-       cmpl    (r1),12(fp)
+       cmpl    (%r1),12(%fp)
        beql    done
        blssu   botch
-       movab   loop,16(fp)
+       movab   loop,16(%fp)
        ret                             # pop another frame
 
 done:
-       cmpb    *16(fp),$2              # returning to an "rei"?
+       cmpb    *16(%fp),$2             # returning to an "rei"?
        bneq    1f
-       movab   3f,16(fp)               # do return w/ psl-pc pop
+       movab   3f,16(%fp)              # do return w/ psl-pc pop
        brw     2f
 1:
-       movab   4f,16(fp)               # do standard return
+       movab   4f,16(%fp)              # do standard return
 2:
        ret                             # unwind stack before signals enabled
 3:
        addl2   $8,sp                   # compensate for PSL-PC push
 4:
-       jmp     *4(r1)                  # done, return....
+       jmp     *4(%r1)                 # done, return....
 
 botch:
        calls   $0,_C_LABEL(longjmperror)
diff -r 41ace68dbf0d -r 954735fe5e14 lib/libc/arch/vax/gen/alloca.S
--- a/lib/libc/arch/vax/gen/alloca.S    Sun Feb 24 01:04:23 2002 +0000
+++ b/lib/libc/arch/vax/gen/alloca.S    Sun Feb 24 01:06:18 2002 +0000
@@ -33,18 +33,18 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
        /* .asciz "@(#)alloca.s 8.1 (Berkeley) 6/4/93" */
-       .asciz "$NetBSD: alloca.S,v 1.1 1995/04/17 12:23:38 ragge Exp $"
+       .asciz "$NetBSD: alloca.S,v 1.2 2002/02/24 01:06:19 matt Exp $"
 #endif /* LIBC_SCCS and not lint */
 
 #include "DEFS.h"



Home | Main Index | Thread Index | Old Index