diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2018-04-09 04:11:05 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2018-04-09 04:11:05 +0000 |
commit | 7a9621f657ec871ffbe83307a4e7a8403aad7731 (patch) | |
tree | 628dd7a2d54e02dc6ee2a172b03e5c82e1543470 /sys/arch/alpha/include | |
parent | 9ecd400a155752d29b5c893fa7ceb5aabcea69bd (diff) |
Fill in FRAME_PS after the fact. What a ridiculous design decision.
It would be better if this was filled in at trap time.
ok guenther
Diffstat (limited to 'sys/arch/alpha/include')
-rw-r--r-- | sys/arch/alpha/include/cpu.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/alpha/include/cpu.h b/sys/arch/alpha/include/cpu.h index bded5b32aa1..59fff48c860 100644 --- a/sys/arch/alpha/include/cpu.h +++ b/sys/arch/alpha/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.58 2017/05/29 14:19:49 mpi Exp $ */ +/* $OpenBSD: cpu.h,v 1.59 2018/04/09 04:11:04 deraadt Exp $ */ /* $NetBSD: cpu.h,v 1.45 2000/08/21 02:03:12 thorpej Exp $ */ /*- @@ -310,7 +310,7 @@ struct clockframe { * This is used during profiling to integrate system time. */ #define PROC_PC(p) ((p)->p_md.md_tf->tf_regs[FRAME_PC]) -#define PROC_STACK(p) (alpha_pal_rdusp()) /*XXX only works for curproc */ +#define PROC_STACK(p) ((p)->p_md.md_tf->tf_regs[FRAME_SP]) /* * Preempt the current process if in interrupt from user mode, |