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 Use cpuctrlmask in the arm1[01] case.



details:   https://anonhg.NetBSD.org/src/rev/c349628ebbb7
branches:  trunk
changeset: 790756:c349628ebbb7
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sun Oct 20 09:30:41 2013 +0000

description:
Use cpuctrlmask in the arm1[01] case.

diffstat:

 sys/arch/arm/arm/cpufunc.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 6a27adce09c7 -r c349628ebbb7 sys/arch/arm/arm/cpufunc.c
--- a/sys/arch/arm/arm/cpufunc.c        Sun Oct 20 03:35:59 2013 +0000
+++ b/sys/arch/arm/arm/cpufunc.c        Sun Oct 20 09:30:41 2013 +0000
@@ -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 @@
 
        /* 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 @@
 
        /* Set the control register */
        curcpu()->ci_ctrl = cpuctrl;
-       cpu_control(0xffffffff, cpuctrl);
+       cpu_control(cpuctrlmask, cpuctrl);
 
        /* And again. */
        cpu_idcache_wbinv_all();



Home | Main Index | Thread Index | Old Index