Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/cortex Force TTBCR to 0
details: https://anonhg.NetBSD.org/src/rev/8b3904df12e5
branches: trunk
changeset: 781415:8b3904df12e5
user: matt <matt%NetBSD.org@localhost>
date: Wed Sep 05 00:21:30 2012 +0000
description:
Force TTBCR to 0
diffstat:
sys/arch/arm/cortex/a9_mpsubr.S | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (25 lines):
diff -r 078bf2f4993e -r 8b3904df12e5 sys/arch/arm/cortex/a9_mpsubr.S
--- a/sys/arch/arm/cortex/a9_mpsubr.S Wed Sep 05 00:20:57 2012 +0000
+++ b/sys/arch/arm/cortex/a9_mpsubr.S Wed Sep 05 00:21:30 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: a9_mpsubr.S,v 1.2 2012/09/02 05:01:54 matt Exp $ */
+/* $NetBSD: a9_mpsubr.S,v 1.3 2012/09/05 00:21:30 matt Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -135,10 +135,14 @@
mcr p15, 0, r1, c8, c7, 0 /* Invalidate TLBs */
/* Set the Domain Access register. Very important! */
- XPUTC(#74)
+ XPUTC(#73)
mov r1, #((DOMAIN_CLIENT << (PMAP_DOMAIN_KERNEL*2)) | DOMAIN_CLIENT)
mcr p15, 0, r1, c3, c0, 0
+ XPUTC(#74)
+ mov r0, #0 /* make sure TTBCR is 0 */
+ mcr p15, 0, r0, c1, c0, 2
+
/*
* Enable the MMU, etc.
*/
Home |
Main Index |
Thread Index |
Old Index