Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbarm/awin Use character constants instead of asci...



details:   https://anonhg.NetBSD.org/src/rev/a51e165a5590
branches:  trunk
changeset: 807670:a51e165a5590
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Apr 18 11:04:49 2015 +0000

description:
Use character constants instead of ascii values for readability

Print A80 in the A80 case and actually print the CPU number for A31/A80

diffstat:

 sys/arch/evbarm/awin/awin_start.S |  38 ++++++++++++++++++++------------------
 1 files changed, 20 insertions(+), 18 deletions(-)

diffs (107 lines):

diff -r 793ce5dbf7d8 -r a51e165a5590 sys/arch/evbarm/awin/awin_start.S
--- a/sys/arch/evbarm/awin/awin_start.S Sat Apr 18 11:03:31 2015 +0000
+++ b/sys/arch/evbarm/awin/awin_start.S Sat Apr 18 11:04:49 2015 +0000
@@ -41,7 +41,7 @@
 #include <arm/allwinner/awin_reg.h>
 #include <evbarm/awin/platform.h>  
 
-RCSID("$NetBSD: awin_start.S,v 1.11 2014/12/26 21:45:17 martin Exp $")
+RCSID("$NetBSD: awin_start.S,v 1.12 2015/04/18 11:04:49 skrll Exp $")
 
 #if defined(VERBOSE_INIT_ARM)
 #define        XPUTC(n)        mov r0, n; bl xputc
@@ -117,7 +117,7 @@
        movw    r1, #:lower16:.Lmmu_init_table
        movt    r1, #:upper16:.Lmmu_init_table
        bl      arm_boot_l1pt_init
-       XPUTC(#68)
+       XPUTC(#'D')
 
        /*
         * Turn on the MMU, Caches, etc.  Return to new enabled address space.
@@ -141,13 +141,13 @@
        .pushsection .text,"ax",%progbits
 1:
 #endif
-       XPUTC2(#90)
+       XPUTC2(#'Z')
 
 #if defined(MULTIPROCESSOR)
        // Now spin up the second processors into the same state we are now.
-       XPUTC2(#77)
-       XPUTC2(#80)
-       XPUTC2(#60)
+       XPUTC2(#'M')
+       XPUTC2(#'P')
+       XPUTC2(#'<')
        // Make sure the cache is flushed out to RAM for the other CPUs
        bl      _C_LABEL(armv7_dcache_wbinv_all)
 
@@ -193,7 +193,7 @@
        bl      a80_mpinit
 #endif
 
-       XPUTC2(#62)
+       XPUTC2(#'>')
 #endif /* MULTIPROCESSOR */
        XPUTC2(#13)
        XPUTC2(#10)
@@ -220,9 +220,9 @@
        movw    r5, #:lower16:(AWIN_CORE_PBASE+AWIN_CPUCFG_OFFSET)
        movt    r5, #:upper16:(AWIN_CORE_PBASE+AWIN_CPUCFG_OFFSET)
 
-       XPUTC2(#65)
-       XPUTC2(#50)
-       XPUTC2(#48)
+       XPUTC2(#'A')
+       XPUTC2(#'2')
+       XPUTC2(#'0')
 
 #ifdef __ARMEB__
        setend  le                      // everything here is little-endian
@@ -315,9 +315,9 @@
        movw    r6, #:lower16:(AWIN_CORE_PBASE+AWIN_A31_PRCM_OFFSET)
        movt    r6, #:upper16:(AWIN_CORE_PBASE+AWIN_A31_PRCM_OFFSET)
 
-       XPUTC2(#65)
-       XPUTC2(#51)
-       XPUTC2(#49)
+       XPUTC2(#'A')
+       XPUTC2(#'3')
+       XPUTC2(#'1')
 
 #ifdef __ARMEB__
        setend  le                      // everything here is little-endian
@@ -327,7 +327,8 @@
 
 a31_mpinit_cpu:
 
-       XPUTC2(r12)
+       add     r1, r12, #'0'
+       XPUTC2(r1)
 
        /* Set where the other CPU(s) are going to execute */
        movw    r1, #:lower16:cortex_mpstart
@@ -453,9 +454,9 @@
        movw    r6, #:lower16:(AWIN_A80_RCPUS_PBASE+AWIN_A80_RPRCM_OFFSET)
        movt    r6, #:upper16:(AWIN_A80_RCPUS_PBASE+AWIN_A80_RPRCM_OFFSET)
 
-       XPUTC2(#65)
-       XPUTC2(#51)
-       XPUTC2(#49)
+       XPUTC2(#'A')
+       XPUTC2(#'8')
+       XPUTC2(#'0')
 
 #ifdef __ARMEB__
        setend  le                      // everything here is little-endian
@@ -465,7 +466,8 @@
 
 a80_mpinit_cpu:
 
-       XPUTC2(r12)
+       add     r1, r12, #'0'
+       XPUTC2(r1)
 
        /* Set where the other CPU(s) are going to execute */
        movw    r1, #:lower16:cortex_mpstart



Home | Main Index | Thread Index | Old Index