summaryrefslogtreecommitdiffstats
path: root/sys/i386
diff options
context:
space:
mode:
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/i386/machdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/i386/machdep.c b/sys/i386/i386/machdep.c
index 43a4c8b..bb6d420 100644
--- a/sys/i386/i386/machdep.c
+++ b/sys/i386/i386/machdep.c
@@ -712,11 +712,11 @@ sigreturn(td, uap)
{
struct proc *p = td->td_proc;
struct trapframe *regs;
- ucontext_t *ucp;
+ const ucontext_t *ucp;
int cs, eflags;
ucp = uap->sigcntxp;
- if (!useracc((caddr_t)ucp, sizeof(*ucp), VM_PROT_READ))
+ if (!useracc((caddr_t)(uintptr_t)ucp, sizeof(*ucp), VM_PROT_READ))
return (EFAULT);
regs = td->td_frame;
eflags = ucp->uc_mcontext.mc_eflags;
OpenPOWER on IntegriCloud