summaryrefslogtreecommitdiffstats
path: root/sys/ia64/include/cpu.h
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>2000-10-10 14:57:10 +0000
committerdfr <dfr@FreeBSD.org>2000-10-10 14:57:10 +0000
commitf610b17c8dd279232337eb576658970e589f7a1d (patch)
tree8d0b26ae97d3c2ace12a1e77c2be829d9f59047b /sys/ia64/include/cpu.h
parent164f1d6866c8c4a001115b258310116282bf08c5 (diff)
downloadFreeBSD-src-f610b17c8dd279232337eb576658970e589f7a1d.zip
FreeBSD-src-f610b17c8dd279232337eb576658970e589f7a1d.tar.gz
* Add rudimentary DDB support (no kgdb, no backtrace, no single step).
* Track recent changes to SWI code. * Allocate RIDs for pmaps (untested). * Implement assembler version of cpu_switch - its cleaner that way.
Diffstat (limited to 'sys/ia64/include/cpu.h')
-rw-r--r--sys/ia64/include/cpu.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/ia64/include/cpu.h b/sys/ia64/include/cpu.h
index 3da3331..79f3727 100644
--- a/sys/ia64/include/cpu.h
+++ b/sys/ia64/include/cpu.h
@@ -65,7 +65,7 @@ struct clockframe {
#define CLKF_BASEPRI(framep) \
(((framep)->cf_tf.tf_cr_ipsr & IA64_PSR_I) == 0)
#define CLKF_PC(framep) ((framep)->cf_tf.tf_cr_iip)
-#define CLKF_INTR(framep) (intr_nesting_level >= 2)
+#define CLKF_INTR(framep) (PCPU_GET(intr_nesting_level) >= 2)
/*
* Preempt the current process if in interrupt from user mode,
@@ -92,7 +92,6 @@ struct clockframe {
#define aston() PCPU_SET(astpending, 1)
#ifdef _KERNEL
-extern u_int32_t intr_nesting_level; /* bookeeping only; counts sw intrs */
extern u_int32_t want_resched; /* resched() was called */
#endif
OpenPOWER on IntegriCloud