Module Name: src
Committed By: aymeric
Date: Fri Nov 2 18:09:17 UTC 2018
Modified Files:
src/sys/arch/arm/altera: cycv_platform.c
Log Message:
. fix important typo which prevented enabling the SCU
. invalidate all cache tags of the SCU
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/arm/altera/cycv_platform.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/altera/cycv_platform.c
diff -u src/sys/arch/arm/altera/cycv_platform.c:1.6 src/sys/arch/arm/altera/cycv_platform.c:1.7
--- src/sys/arch/arm/altera/cycv_platform.c:1.6 Tue Oct 30 16:41:52 2018
+++ src/sys/arch/arm/altera/cycv_platform.c Fri Nov 2 18:09:17 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: cycv_platform.c,v 1.6 2018/10/30 16:41:52 skrll Exp $ */
+/* $NetBSD: cycv_platform.c,v 1.7 2018/11/02 18:09:17 aymeric Exp $ */
/* This file is in the public domain. */
@@ -6,7 +6,7 @@
#include "opt_multiprocessor.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cycv_platform.c,v 1.6 2018/10/30 16:41:52 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cycv_platform.c,v 1.7 2018/11/02 18:09:17 aymeric Exp $");
#define _ARM32_BUS_DMA_PRIVATE
#include <sys/param.h>
@@ -81,8 +81,9 @@ cycv_mpstart(void)
bus_space_map(bst, CYCV_SCU_BASE, CYCV_SCU_SIZE, 0, &bsh_scu);
/* Enable Snoop Control Unit */
- bus_space_write_4(bst, bsh_rst, SCU_CTL,
- bus_space_read_4(bst, bsh_rst, SCU_CTL) | SCU_CTL_SCU_ENA);
+ bus_space_write_4(bst, bsh_scu, SCU_INV_ALL_REG, 0xff);
+ bus_space_write_4(bst, bsh_scu, SCU_CTL,
+ bus_space_read_4(bst, bsh_scu, SCU_CTL) | SCU_CTL_SCU_ENA);
const uint32_t startfunc = (uint32_t) KERN_VTOPHYS((vaddr_t)cpu_mpstart);