diff options
author | jhb <jhb@FreeBSD.org> | 2001-06-29 11:10:41 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2001-06-29 11:10:41 +0000 |
commit | d82893e6762433665a192f6ffe2dad2a1a6c0678 (patch) | |
tree | cb74fd6ffd13686b7602fd19e3756d344a7b64e2 /sys/amd64/include/cpu.h | |
parent | 11807e464b0264daf76c2429a84420f80a6605d1 (diff) | |
download | FreeBSD-src-d82893e6762433665a192f6ffe2dad2a1a6c0678.zip FreeBSD-src-d82893e6762433665a192f6ffe2dad2a1a6c0678.tar.gz |
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)
Diffstat (limited to 'sys/amd64/include/cpu.h')
-rw-r--r-- | sys/amd64/include/cpu.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/include/cpu.h b/sys/amd64/include/cpu.h index 29b34ee..90643aa 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)) |