aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64/include/cpu.h
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2001-06-29 11:10:41 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2001-06-29 11:10:41 +0000
commit6be523bca7a9ffdeef7141602017ab1b2f833a52 (patch)
treecb74fd6ffd13686b7602fd19e3756d344a7b64e2 /sys/amd64/include/cpu.h
parentec2262612f4f696088834aa862c91f7af8ace232 (diff)
downloadsrc-6be523bca7a9ffdeef7141602017ab1b2f833a52.tar.gz
src-6be523bca7a9ffdeef7141602017ab1b2f833a52.zip
Add a new MI pointer to the process' trapframe p_frame instead of using
various differently named pointers buried under p_md. Reviewed by: jake (in principle)
Notes
Notes: svn path=/head/; revision=78962
Diffstat (limited to 'sys/amd64/include/cpu.h')
-rw-r--r--sys/amd64/include/cpu.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/include/cpu.h b/sys/amd64/include/cpu.h
index 29b34eee7ec0..90643aa5a5e9 100644
--- a/sys/amd64/include/cpu.h
+++ b/sys/amd64/include/cpu.h
@@ -56,8 +56,8 @@
#define cpu_exec(p) /* nothing */
#define cpu_swapin(p) /* nothing */
-#define cpu_getstack(p) ((p)->p_md.md_regs->tf_esp)
-#define cpu_setstack(p, ap) ((p)->p_md.md_regs->tf_esp = (ap))
+#define cpu_getstack(p) ((p)->p_frame->tf_esp)
+#define cpu_setstack(p, ap) ((p)->p_frame->tf_esp = (ap))
#define TRAPF_USERMODE(framep) \
((ISPL((framep)->tf_cs) == SEL_UPL) || ((framep)->tf_eflags & PSL_VM))