Module Name: src
Committed By: matt
Date: Thu Sep 6 02:03:02 UTC 2012
Modified Files:
src/sys/arch/arm/arm32: arm32_kvminit.c
Log Message:
Before setting the new TTB wbinv the caches.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/arm/arm32/arm32_kvminit.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/arm/arm32/arm32_kvminit.c
diff -u src/sys/arch/arm/arm32/arm32_kvminit.c:1.2 src/sys/arch/arm/arm32/arm32_kvminit.c:1.3
--- src/sys/arch/arm/arm32/arm32_kvminit.c:1.2 Wed Sep 5 00:20:57 2012
+++ src/sys/arch/arm/arm32/arm32_kvminit.c Thu Sep 6 02:03:01 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: arm32_kvminit.c,v 1.2 2012/09/05 00:20:57 matt Exp $ */
+/* $NetBSD: arm32_kvminit.c,v 1.3 2012/09/06 02:03:01 matt Exp $ */
/*
* Copyright (c) 2002, 2003, 2005 Genetec Corporation. All rights reserved.
@@ -122,7 +122,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: arm32_kvminit.c,v 1.2 2012/09/05 00:20:57 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: arm32_kvminit.c,v 1.3 2012/09/06 02:03:01 matt Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -861,10 +861,11 @@ arm32_kernel_vm_init(vaddr_t kernel_vm_b
/* Switch tables */
#ifdef VERBOSE_INIT_ARM
- printf("switching to new L1 page table @%#lx...", l1pt_pa);
+ printf("switching to new L1 page table @%#lx...", l1pt_pa);
#endif
cpu_domains((DOMAIN_CLIENT << (PMAP_DOMAIN_KERNEL*2)) | DOMAIN_CLIENT);
+ cpu_idcache_wbinv_all();
cpu_setttb(l1pt_pa);
cpu_tlb_flushID();
cpu_domains(DOMAIN_CLIENT << (PMAP_DOMAIN_KERNEL*2));