diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2016-05-10 14:52:04 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2016-05-10 14:52:04 +0000 |
commit | 24ed245ec22671d3d288d52c91f39a81a24637bf (patch) | |
tree | 8fd273510bb6ffd769ddedcdfd655b9cbf3af9f3 /sys | |
parent | f07eb283f8ac10010fa193b585c5371f18af36bd (diff) |
The hppa trapframe PC is marked (in the low two bits) to indicate a
userland addressspace address. Those bits should be masked to
callers of the PROC_PC() macro.
ok kettenis
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/hppa/include/cpu.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/hppa/include/cpu.h b/sys/arch/hppa/include/cpu.h index 85683b4bd34..4c9407bf35a 100644 --- a/sys/arch/hppa/include/cpu.h +++ b/sys/arch/hppa/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.88 2015/07/02 01:33:59 dlg Exp $ */ +/* $OpenBSD: cpu.h,v 1.89 2016/05/10 14:52:03 deraadt Exp $ */ /* * Copyright (c) 2000-2004 Michael Shalayeff @@ -212,7 +212,7 @@ extern int cpu_hvers; #define CLKF_SYSCALL(framep) ((framep)->tf_flags & TFF_SYS) #define need_proftick(p) setsoftast(p) -#define PROC_PC(p) ((p)->p_md.md_regs->tf_iioq_head) +#define PROC_PC(p) ((p)->p_md.md_regs->tf_iioq_head & ~HPPA_PC_PRIV_MASK) #define PROC_STACK(p) ((p)->p_md.md_regs->tf_sp) #ifndef _LOCORE |