summaryrefslogtreecommitdiffstats
path: root/sys/ia64/include/cpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/ia64/include/cpu.h')
-rw-r--r--sys/ia64/include/cpu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/ia64/include/cpu.h b/sys/ia64/include/cpu.h
index c6ebd1c..d581447 100644
--- a/sys/ia64/include/cpu.h
+++ b/sys/ia64/include/cpu.h
@@ -52,6 +52,8 @@
#include <machine/frame.h>
+#define cpu_getstack(p) ((p)->p_md.md_tf->tf_r[FRAME_SP])
+
/*
* Arguments to hardclock and gatherstats encapsulate the previous
* machine state in an opaque clockframe. One the Alpha, we use
OpenPOWER on IntegriCloud