Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/arm32 Use curcpu() instead of l->l_cpu



details:   https://anonhg.NetBSD.org/src/rev/4e2786b89507
branches:  trunk
changeset: 781246:4e2786b89507
user:      matt <matt%NetBSD.org@localhost>
date:      Wed Aug 29 16:48:11 2012 +0000

description:
Use curcpu() instead of l->l_cpu

diffstat:

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

diffs (27 lines):

diff -r ed848dd74c6b -r 4e2786b89507 sys/arch/arm/arm32/fault.c
--- a/sys/arch/arm/arm32/fault.c        Wed Aug 29 16:45:34 2012 +0000
+++ b/sys/arch/arm/arm32/fault.c        Wed Aug 29 16:48:11 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fault.c,v 1.83 2012/08/16 17:35:01 matt Exp $  */
+/*     $NetBSD: fault.c,v 1.84 2012/08/29 16:48:11 matt Exp $  */
 
 /*
  * Copyright 2003 Wasabi Systems, Inc.
@@ -81,7 +81,7 @@
 #include "opt_kgdb.h"
 
 #include <sys/types.h>
-__KERNEL_RCSID(0, "$NetBSD: fault.c,v 1.83 2012/08/16 17:35:01 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fault.c,v 1.84 2012/08/29 16:48:11 matt Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -836,7 +836,7 @@
        }
 
 #ifdef DIAGNOSTIC
-       if (__predict_false(l->l_cpu->ci_intr_depth > 0)) {
+       if (__predict_false(curcpu()->ci_intr_depth > 0)) {
                printf("\nNon-emulated prefetch abort with intr_depth > 0\n");
                dab_fatal(tf, 0, tf->tf_pc, NULL, NULL);
        }



Home | Main Index | Thread Index | Old Index