Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbarm/cubie Make sure the core register are mapped...



details:   https://anonhg.NetBSD.org/src/rev/6f3d4d18373f
branches:  trunk
changeset: 789749:6f3d4d18373f
user:      matt <matt%NetBSD.org@localhost>
date:      Sat Sep 07 00:30:17 2013 +0000

description:
Make sure the core register are mapped PA:VA too.

diffstat:

 sys/arch/evbarm/cubie/cubie_start.S |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (36 lines):

diff -r 229c91139c91 -r 6f3d4d18373f sys/arch/evbarm/cubie/cubie_start.S
--- a/sys/arch/evbarm/cubie/cubie_start.S       Sat Sep 07 00:29:22 2013 +0000
+++ b/sys/arch/evbarm/cubie/cubie_start.S       Sat Sep 07 00:30:17 2013 +0000
@@ -95,7 +95,7 @@
 #include <arm/allwinner/awin_reg.h>
 #include <evbarm/cubie/platform.h>  
 
-RCSID("$NetBSD: cubie_start.S,v 1.1 2013/09/03 18:01:33 matt Exp $")
+RCSID("$NetBSD: cubie_start.S,v 1.2 2013/09/07 00:30:17 matt Exp $")
 
 #if defined(VERBOSE_INIT_ARM)
 #define        XPUTC(n)        mov r0, n; bl xputc
@@ -164,11 +164,7 @@
        movw    ip, #:lower16:start
        movt    ip, #:upper16:start
        bx      ip              /* Jump to start (flushes pipeline). */
-       nop
-       nop
-       nop
-       nop
-       
+
        /* NOTREACHED */
 
 #include <arm/cortex/a9_mpsubr.S>
@@ -189,6 +185,10 @@
                (AWIN_CORE_SIZE + L1_S_SIZE - 1) / L1_S_SIZE,
                L1_S_PROTO | L1_S_APv7_KRW)
 
+       /* Map AWIN CORE (so console will work) */
+       MMU_INIT(AWIN_CORE_PBASE, AWIN_CORE_PBASE,
+               (AWIN_CORE_SIZE + L1_S_SIZE - 1) / L1_S_SIZE,
+               L1_S_PROTO | L1_S_APv7_KRW)
        /* end of table */
        MMU_INIT(0, 0, 0, 0)
 



Home | Main Index | Thread Index | Old Index