diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2020-06-22 13:52:41 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2020-06-22 13:52:41 +0000 |
commit | 911ee731e28d6573a1e40b505d49699c7ccb0133 (patch) | |
tree | ac53e45b79acf8df2b804860fd11b5f943f58acb /sys/arch | |
parent | e86d82447559bb0327ac251ace9e38495ee399b0 (diff) |
Provide working definitions of PROC_STACK() and PROC_PC().
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/powerpc64/include/cpu.h | 6 |
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); |