Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc/sparc sparc cpu_intr_p(): try to work around ...



details:   https://anonhg.NetBSD.org/src/rev/837d62d6b8b7
branches:  trunk
changeset: 1008187:837d62d6b8b7
user:      ad <ad%NetBSD.org@localhost>
date:      Sat Mar 14 13:34:43 2020 +0000

description:
sparc cpu_intr_p(): try to work around l_cpu not being set early on by
using curcpu().

diffstat:

 sys/arch/sparc/sparc/intr.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 3e7f57a030c6 -r 837d62d6b8b7 sys/arch/sparc/sparc/intr.c
--- a/sys/arch/sparc/sparc/intr.c       Sat Mar 14 13:08:18 2020 +0000
+++ b/sys/arch/sparc/sparc/intr.c       Sat Mar 14 13:34:43 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: intr.c,v 1.123 2019/12/03 15:20:59 riastradh Exp $ */
+/*     $NetBSD: intr.c,v 1.124 2020/03/14 13:34:43 ad Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.123 2019/12/03 15:20:59 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.124 2020/03/14 13:34:43 ad Exp $");
 
 #include "opt_multiprocessor.h"
 #include "opt_sparc_arch.h"
@@ -897,7 +897,7 @@
        do {
                ncsw = l->l_ncsw;
                __insn_barrier();
-               idepth = l->l_cpu->ci_idepth;
+               idepth = curcpu()->ci_idepth;
                __insn_barrier();
        } while (__predict_false(ncsw != l->l_ncsw));
 



Home | Main Index | Thread Index | Old Index