Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/arm Fix set the control register.



details:   https://anonhg.NetBSD.org/src/rev/2b56c3970a4b
branches:  trunk
changeset: 756048:2b56c3970a4b
user:      kiyohara <kiyohara%NetBSD.org@localhost>
date:      Mon Jul 05 06:50:01 2010 +0000

description:
Fix set the control register.

diffstat:

 sys/arch/arm/arm/cpufunc.c |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r ef19e1b67bfe -r 2b56c3970a4b sys/arch/arm/arm/cpufunc.c
--- a/sys/arch/arm/arm/cpufunc.c        Mon Jul 05 00:45:19 2010 +0000
+++ b/sys/arch/arm/arm/cpufunc.c        Mon Jul 05 06:50:01 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpufunc.c,v 1.97 2010/06/19 20:42:43 matt Exp $        */
+/*     $NetBSD: cpufunc.c,v 1.98 2010/07/05 06:50:01 kiyohara Exp $    */
 
 /*
  * arm7tdmi support code Copyright (c) 2001 John Fremlin
@@ -49,7 +49,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpufunc.c,v 1.97 2010/06/19 20:42:43 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpufunc.c,v 1.98 2010/07/05 06:50:01 kiyohara Exp $");
 
 #include "opt_compat_netbsd.h"
 #include "opt_cpuoptions.h"
@@ -2604,7 +2604,10 @@
 
        /* Clear out the cache */
        cpu_idcache_wbinv_all();
-       /* set some cortrol register? */
+
+       /* Set the control register */
+       curcpu()->ci_ctrl = cpuctrl;
+       cpu_control(0xffffffff, cpuctrl);
 }
 
 /* Clean the data cache to the level of coherency. Slow. */



Home | Main Index | Thread Index | Old Index