aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64/include/cpu.h
diff options
context:
space:
mode:
authorJake Burkholder <jake@FreeBSD.org>2001-01-10 04:43:51 +0000
committerJake Burkholder <jake@FreeBSD.org>2001-01-10 04:43:51 +0000
commitef73ae4b0ccbd4beded1e8cce7f528799a1ae5ed (patch)
tree837f127fd047b38a9231fd849a9c2619fd965f3d /sys/amd64/include/cpu.h
parent64ca32560de33b7d9e93ef9a226362c7dd105101 (diff)
downloadsrc-ef73ae4b0ccbd4beded1e8cce7f528799a1ae5ed.tar.gz
src-ef73ae4b0ccbd4beded1e8cce7f528799a1ae5ed.zip
Use PCPU_GET, PCPU_PTR and PCPU_SET to access all per-cpu variables
other then curproc.
Notes
Notes: svn path=/head/; revision=70861
Diffstat (limited to 'sys/amd64/include/cpu.h')
-rw-r--r--sys/amd64/include/cpu.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/amd64/include/cpu.h b/sys/amd64/include/cpu.h
index 4c6cb436fb63..6c4162b339bc 100644
--- a/sys/amd64/include/cpu.h
+++ b/sys/amd64/include/cpu.h
@@ -62,7 +62,7 @@
#define CLKF_USERMODE(framep) \
((ISPL((framep)->cf_cs) == SEL_UPL) || (framep->cf_eflags & PSL_VM))
-#define CLKF_INTR(framep) (intr_nesting_level >= 2)
+#define CLKF_INTR(framep) (PCPU_GET(intr_nesting_level) >= 2)
#define CLKF_PC(framep) ((framep)->cf_eip)
/*
@@ -82,7 +82,7 @@
#define need_resched() do { \
PCPU_SET(astpending, AST_RESCHED|AST_PENDING); \
} while (0)
-#define resched_wanted() (astpending & AST_RESCHED)
+#define resched_wanted() (PCPU_GET(astpending) & AST_RESCHED)
/*
* Arrange to handle pending profiling ticks before returning to user mode.
@@ -105,7 +105,7 @@
*/
#define signotify(p) aston()
#define aston() do { \
- PCPU_SET(astpending, astpending | AST_PENDING); \
+ PCPU_SET(astpending, PCPU_GET(astpending) | AST_PENDING); \
} while (0)
#define astoff()