summaryrefslogtreecommitdiffstats
path: root/sys/sparc64/include/cpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/sparc64/include/cpu.h')
-rw-r--r--sys/sparc64/include/cpu.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sparc64/include/cpu.h b/sys/sparc64/include/cpu.h
index 3a84287..91e04fa 100644
--- a/sys/sparc64/include/cpu.h
+++ b/sys/sparc64/include/cpu.h
@@ -50,8 +50,8 @@
#define TRAPF_PC(tfp) ((tfp)->tf_tpc)
#define TRAPF_USERMODE(tfp) (((tfp)->tf_tstate & TSTATE_PRIV) == 0)
-#define cpu_getstack(p) ((p)->p_frame->tf_sp)
-#define cpu_setstack(p, sp) ((p)->p_frame->tf_sp = (sp))
+#define cpu_getstack(td) ((td)->td_frame->tf_sp)
+#define cpu_setstack(td, sp) ((td)->td_frame->tf_sp = (sp))
/*
* CTL_MACHDEP definitions.
OpenPOWER on IntegriCloud