Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/arm32 Fix missing registers (don't make then im...



details:   https://anonhg.NetBSD.org/src/rev/c74592f2fb46
branches:  trunk
changeset: 782822:c74592f2fb46
user:      matt <matt%NetBSD.org@localhost>
date:      Wed Nov 21 19:38:36 2012 +0000

description:
Fix missing registers (don't make then implicit).

diffstat:

 sys/arch/arm/arm32/locore.S |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (31 lines):

diff -r 84ebc79216be -r c74592f2fb46 sys/arch/arm/arm32/locore.S
--- a/sys/arch/arm/arm32/locore.S       Wed Nov 21 19:30:53 2012 +0000
+++ b/sys/arch/arm/arm32/locore.S       Wed Nov 21 19:38:36 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.S,v 1.29 2012/09/27 21:28:13 matt Exp $ */
+/*     $NetBSD: locore.S,v 1.30 2012/11/21 19:38:36 matt Exp $ */
 
 /*
  * Copyright (C) 1994-1997 Mark Brinicombe
@@ -42,7 +42,7 @@
 /* What size should this really be ? It is only used by init_arm() */
 #define INIT_ARM_STACK_SIZE    2048
 
-       RCSID("$NetBSD: locore.S,v 1.29 2012/09/27 21:28:13 matt Exp $")
+       RCSID("$NetBSD: locore.S,v 1.30 2012/11/21 19:38:36 matt Exp $")
 
 /*
  * This is for kvm_mkdb, and should be the address of the beginning
@@ -155,9 +155,9 @@
         * Hurl ourselves into the ROM
         */
        mrc     p15, 0, r0, c1, c0, 0
-       bic     r0, #(CPU_CONTROL_MMU_ENABLE | CPU_CONTROL_DC_ENABLE)
-       bic     r0, #(CPU_CONTROL_IC_ENABLE)
-       orr     r0, #(CPU_CONTROL_32BP_ENABLE | CPU_CONTROL_32BD_ENABLE)
+       bic     r0, r0, #(CPU_CONTROL_MMU_ENABLE | CPU_CONTROL_DC_ENABLE)
+       bic     r0, r0, #(CPU_CONTROL_IC_ENABLE)
+       orr     r0, r0, #(CPU_CONTROL_32BP_ENABLE | CPU_CONTROL_32BD_ENABLE)
        mcr     p15, 0, r0, c1, c0, 0
        mcreq   p15, 0, r2, c8, c7, 0   /* nail I+D TLB on ARMv4 and greater */
        mov     pc, r4



Home | Main Index | Thread Index | Old Index