Module Name:    src
Committed By:   skrll
Date:           Sun Oct 20 09:30:41 UTC 2013

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

Log Message:
Use cpuctrlmask in the arm1[01] case.


To generate a diff of this commit:
cvs rdiff -u -r1.125 -r1.126 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.125 src/sys/arch/arm/arm/cpufunc.c:1.126
--- src/sys/arch/arm/arm/cpufunc.c:1.125	Sun Aug 18 07:57:27 2013
+++ src/sys/arch/arm/arm/cpufunc.c	Sun Oct 20 09:30:41 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: cpufunc.c,v 1.125 2013/08/18 07:57:27 matt Exp $	*/
+/*	$NetBSD: cpufunc.c,v 1.126 2013/10/20 09:30:41 skrll 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.125 2013/08/18 07:57:27 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpufunc.c,v 1.126 2013/10/20 09:30:41 skrll Exp $");
 
 #include "opt_compat_netbsd.h"
 #include "opt_cpuoptions.h"
@@ -2871,7 +2871,7 @@ arm10_setup(char *args)
 
 	/* Set the control register */
 	curcpu()->ci_ctrl = cpuctrl;
-	cpu_control(0xffffffff, cpuctrl);
+	cpu_control(cpuctrlmask, cpuctrl);
 
 	/* And again. */
 	cpu_idcache_wbinv_all();
@@ -2930,7 +2930,7 @@ arm11_setup(char *args)
 
 	/* Set the control register */
 	curcpu()->ci_ctrl = cpuctrl;
-	cpu_control(0xffffffff, cpuctrl);
+	cpu_control(cpuctrlmask, cpuctrl);
 
 	/* And again. */
 	cpu_idcache_wbinv_all();

Reply via email to