Source-Changes-HG archive

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

[src/trunk]: src/sys/arch ".align 2" for mova instruction



details:   https://anonhg.NetBSD.org/src/rev/4d9fdfc8f60d
branches:  trunk
changeset: 479801:4d9fdfc8f60d
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Tue Dec 21 17:46:54 1999 +0000

description:
".align 2" for mova instruction

diffstat:

 sys/arch/evbsh3/evbsh3/locore.s |  30 ++++++++++++++++++------------
 sys/arch/mmeye/mmeye/locore.s   |  16 +++++++++++-----
 2 files changed, 29 insertions(+), 17 deletions(-)

diffs (133 lines):

diff -r 1e6a5f0aa864 -r 4d9fdfc8f60d sys/arch/evbsh3/evbsh3/locore.s
--- a/sys/arch/evbsh3/evbsh3/locore.s   Tue Dec 21 16:54:16 1999 +0000
+++ b/sys/arch/evbsh3/evbsh3/locore.s   Tue Dec 21 17:46:54 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.s,v 1.4 1999/09/16 21:39:24 msaitoh Exp $       */
+/*     $NetBSD: locore.s,v 1.5 1999/12/21 17:46:54 msaitoh Exp $       */
 
 /*-
  * Copyright (c) 1993, 1994, 1995, 1997
@@ -343,7 +343,7 @@
        jsr     @r0             /* call initSH3() */
        nop
 1:
-
+       .align  2
 #if 1
        mov.l   XLKernelStack, r3
        mov.l   r15, @r3
@@ -554,7 +554,9 @@
        jsr     @r0
        nop
 
-1:     .asciz  "cpu_swicth"
+1:
+       .align  2
+       .asciz  "cpu_swicth"
        .align  2
 XL_panic:      .long   _panic
 #endif
@@ -775,20 +777,22 @@
        mov.l   r14, @r0
 /* #define sh3_debug */
 #ifdef sh3_debug
-       mova    XL_fmt, r0
+       mova    1f, r0
        mov     r0, r4
        mov     r14, r6
        mov     r13, r5
-       mov.l   XL_printf, r0
+       mov.l   2f, r0
        jsr     @r0
        nop
        bra     3f
        nop
 
-XL_fmt:        .asciz  "switch[i=%d,whichqs=0x%0x]\n"
+1:
        .align  2
-XL_printf:
-       .long   _printf
+       .asciz  "switch[i=%d,whichqs=0x%0x]\n"
+       .align  2
+2:
+       .long   _C_LABEL(printf)
 #endif
 
 3:
@@ -1424,7 +1428,7 @@
 
 ENTRY(cpu_printR15)
        sts.l   pr, @-r15
-       mova    XL_fmt, r0
+       mova    1f, r0
        mov     r0, r4
        mov     r15, r5
        mov.l   XL_printf, r0
@@ -1434,10 +1438,12 @@
        rts
        nop
 
-XL_fmt:        .asciz  "sp=0x%x\n"
+1:
        .align  2
-XL_printf:
-       .long   _printf
+       .asciz  "sp=0x%x\n"
+       .align  2
+2:
+       .long   _C_LABEL(printf)
 
 load_and_reset:
        mov.l   XL_start_address, r0
diff -r 1e6a5f0aa864 -r 4d9fdfc8f60d sys/arch/mmeye/mmeye/locore.s
--- a/sys/arch/mmeye/mmeye/locore.s     Tue Dec 21 16:54:16 1999 +0000
+++ b/sys/arch/mmeye/mmeye/locore.s     Tue Dec 21 17:46:54 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.s,v 1.5 1999/09/22 08:57:49 tsubai Exp $        */
+/*     $NetBSD: locore.s,v 1.6 1999/12/21 17:46:55 msaitoh Exp $       */
 
 /*-
  * Copyright (c) 1993, 1994, 1995, 1997
@@ -347,7 +347,7 @@
        jsr     @r0             /* call initSH3() */
        nop
 1:
-
+       .align  2
 #if 1
        mov.l   XLKernelStack, r3
        mov.l   r15, @r3
@@ -550,7 +550,9 @@
        jsr     @r0
        nop
 
-1:     .asciz  "cpu_swicth"
+1:
+       .align  2
+       .asciz  "cpu_swicth"
        .align  2
 XL_panic:
        .long   _C_LABEL(panic)
@@ -723,7 +725,9 @@
        bra     3f
        nop
 
-1:     .asciz  "switch[i=%d,whichqs=0x%0x]\n"
+1:
+       .align  2
+       .asciz  "switch[i=%d,whichqs=0x%0x]\n"
        .align  2
 2:     .long   _C_LABEL(printf)
 #endif
@@ -1287,7 +1291,9 @@
        rts
        nop
 
-1:     .asciz  "sp=0x%x\n"
+1:
+       .align  2
+       .asciz  "sp=0x%x\n"
        .align  2
 2:     .long   _C_LABEL(printf)
 #endif



Home | Main Index | Thread Index | Old Index