Module Name: src
Committed By: joerg
Date: Sun Mar 15 22:54:03 UTC 2015
Modified Files:
src/sys/arch/evbarm/rpi: rpi_machdep.c
Log Message:
Do invalidate the cache as RPI2 build with Clang can't fetch the memory
config otherwise.
To generate a diff of this commit:
cvs rdiff -u -r1.58 -r1.59 src/sys/arch/evbarm/rpi/rpi_machdep.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/evbarm/rpi/rpi_machdep.c
diff -u src/sys/arch/evbarm/rpi/rpi_machdep.c:1.58 src/sys/arch/evbarm/rpi/rpi_machdep.c:1.59
--- src/sys/arch/evbarm/rpi/rpi_machdep.c:1.58 Wed Mar 4 17:02:17 2015
+++ src/sys/arch/evbarm/rpi/rpi_machdep.c Sun Mar 15 22:54:03 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: rpi_machdep.c,v 1.58 2015/03/04 17:02:17 skrll Exp $ */
+/* $NetBSD: rpi_machdep.c,v 1.59 2015/03/15 22:54:03 joerg Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rpi_machdep.c,v 1.58 2015/03/04 17:02:17 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rpi_machdep.c,v 1.59 2015/03/15 22:54:03 joerg Exp $");
#include "opt_arm_debug.h"
#include "opt_bcm283x.h"
@@ -431,13 +431,7 @@ rpi_bootparams(void)
bcm2835_mbox_read(iot, ioh, BCMMBOX_CHANARM2VC, &res);
- /*
- * No need to invalid the cache as the memory has never been referenced
- * by the ARM.
- *
- * cpu_dcache_inv_range((vaddr_t)&vb, sizeof(vb));
- *
- */
+ cpu_dcache_inv_range((vaddr_t)&vb, sizeof(vb));
if (!vcprop_buffer_success_p(&vb.vb_hdr)) {
bootconfig.dramblocks = 1;