Module Name:    src
Committed By:   kiyohara
Date:           Mon Jul  5 06:50:02 UTC 2010

Modified Files:
        src/sys/arch/arm/arm: cpufunc.c

Log Message:
Fix set the control register.


To generate a diff of this commit:
cvs rdiff -u -r1.97 -r1.98 src/sys/arch/arm/arm/cpufunc.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/arm/cpufunc.c
diff -u src/sys/arch/arm/arm/cpufunc.c:1.97 src/sys/arch/arm/arm/cpufunc.c:1.98
--- src/sys/arch/arm/arm/cpufunc.c:1.97	Sat Jun 19 20:42:43 2010
+++ src/sys/arch/arm/arm/cpufunc.c	Mon Jul  5 06:50:01 2010
@@ -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. */

Reply via email to