summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1995-05-04 07:50:06 +0000
committerdg <dg@FreeBSD.org>1995-05-04 07:50:06 +0000
commitb003b5548b42621c912b3965e390c25108bb7b54 (patch)
tree96c85e4a6f7277b9f5f98d112691a777f084f971 /sys/amd64/include
parenta0086bd08766f0b26016b7cc81ef7099d54f0324 (diff)
downloadFreeBSD-src-b003b5548b42621c912b3965e390c25108bb7b54.zip
FreeBSD-src-b003b5548b42621c912b3965e390c25108bb7b54.tar.gz
Correct the definition for the (unused) cpu_setstack().
Diffstat (limited to 'sys/amd64/include')
-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 be1d11b..58a5ab6 100644
--- a/sys/amd64/include/cpu.h
+++ b/sys/amd64/include/cpu.h
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)cpu.h 5.4 (Berkeley) 5/9/91
- * $Id: cpu.h,v 1.18 1994/12/03 10:02:53 bde Exp $
+ * $Id: cpu.h,v 1.19 1994/12/03 10:18:24 bde Exp $
*/
#ifndef _MACHINE_CPU_H_
@@ -54,7 +54,7 @@
#define cpu_exec(p) /* nothing */
#define cpu_swapin(p) /* nothing */
-#define cpu_setstack(p, ap) (p)->p_md.md_regs = ap
+#define cpu_setstack(p, ap) (p)->p_md.md_regs[SP] = ap
#define cpu_set_init_frame(p, fp) (p)->p_md.md_regs = fp
#define CLKF_USERMODE(framep) (ISPL((framep)->cf_cs) == SEL_UPL)
OpenPOWER on IntegriCloud