summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/alpha/alpha/machdep.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/alpha/alpha/machdep.c b/sys/alpha/alpha/machdep.c
index eecd53f..fe9b276 100644
--- a/sys/alpha/alpha/machdep.c
+++ b/sys/alpha/alpha/machdep.c
@@ -2074,6 +2074,9 @@ set_mcontext(struct thread *td, const mcontext_t *mcp)
if (td == curthread) {
alpha_pal_wrusp(mcp->mc_regs[FRAME_SP]);
alpha_pal_wrunique(mcp->mc_thrptr);
+ } else {
+ td->td_pcb->pcb_hw.apcb_usp = mcp->mc_regs[FRAME_SP];
+ td->td_pcb->pcb_hw.apcb_unique = mcp->mc_thrptr;
}
/*
OpenPOWER on IntegriCloud