diff options
author | kettenis <kettenis@openbsd.org> | 2020-06-22 13:52:40 +0000 |
---|---|---|
committer | kettenis <kettenis@openbsd.org> | 2020-06-22 13:52:40 +0000 |
commit | 717af3c7dd8043a8a6063e7ee0c7c5d9a7f79459 (patch) | |
tree | c9908a7d9cb4f925faa76b459a91841b9b119033 | |
parent | spelling fix; (diff) | |
download | wireguard-openbsd-717af3c7dd8043a8a6063e7ee0c7c5d9a7f79459.tar.xz wireguard-openbsd-717af3c7dd8043a8a6063e7ee0c7c5d9a7f79459.zip |
Provide working definitions of PROC_STACK() and PROC_PC().
-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); |