aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64/include
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
parentec2262612f4f696088834aa862c91f7af8ace232 (diff)
Notes
Diffstat (limited to 'sys/amd64/include')
-rw-r--r--sys/amd64/include/cpu.h4
-rw-r--r--sys/amd64/include/proc.h1
2 files changed, 2 insertions, 3 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))
diff --git a/sys/amd64/include/proc.h b/sys/amd64/include/proc.h
index bc2679e385c3..4217c4f44487 100644
--- a/sys/amd64/include/proc.h
+++ b/sys/amd64/include/proc.h
@@ -43,7 +43,6 @@
* Machine-dependent part of the proc structure for i386.
*/
struct mdproc {
- struct trapframe *md_regs; /* registers on current frame */
};
#endif /* !_MACHINE_PROC_H_ */