summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2020-06-22 13:52:41 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2020-06-22 13:52:41 +0000
commit911ee731e28d6573a1e40b505d49699c7ccb0133 (patch)
treeac53e45b79acf8df2b804860fd11b5f943f58acb /sys/arch
parente86d82447559bb0327ac251ace9e38495ee399b0 (diff)
Provide working definitions of PROC_STACK() and PROC_PC().
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/powerpc64/include/cpu.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/powerpc64/include/cpu.h b/sys/arch/powerpc64/include/cpu.h
index 36b350366e4..3b27dc0815a 100644
--- a/sys/arch/powerpc64/include/cpu.h
+++ b/sys/arch/powerpc64/include/cpu.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.h,v 1.14 2020/06/21 13:23:59 kettenis Exp $ */
+/* $OpenBSD: cpu.h,v 1.15 2020/06/22 13:52:40 kettenis Exp $ */
/*
* Copyright (c) 2020 Mark Kettenis <kettenis@openbsd.org>
@@ -113,8 +113,8 @@ void delay(u_int);
#define setsoftast() aston(curcpu()->ci_curproc)
-#define PROC_STACK(p) 0
-#define PROC_PC(p) 0
+#define PROC_STACK(p) ((p)->p_md.md_regs->fixreg[1])
+#define PROC_PC(p) ((p)->p_md.md_regs->srr0)
void proc_trampoline(void);