Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/altera . fix important typo which prevented ena...



details:   https://anonhg.NetBSD.org/src/rev/605d68b0554f
branches:  trunk
changeset: 445561:605d68b0554f
user:      aymeric <aymeric%NetBSD.org@localhost>
date:      Fri Nov 02 18:09:17 2018 +0000

description:
. fix important typo which prevented enabling the SCU
. invalidate all cache tags of the SCU

diffstat:

 sys/arch/arm/altera/cycv_platform.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r 5312ef4ef861 -r 605d68b0554f sys/arch/arm/altera/cycv_platform.c
--- a/sys/arch/arm/altera/cycv_platform.c       Fri Nov 02 18:07:33 2018 +0000
+++ b/sys/arch/arm/altera/cycv_platform.c       Fri Nov 02 18:09:17 2018 +0000
@@ -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 @@
        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);
 



Home | Main Index | Thread Index | Old Index