From 191739dfc0bf640b84b05fea024e2b6f559bb54d Mon Sep 17 00:00:00 2001 From: Justus Winter <4winter@informatik.uni-hamburg.de> Date: Mon, 4 May 2015 01:56:12 +0200 Subject: [PATCH gnumach 03/10] XXX i386: less magic --- i386/i386/pcb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/i386/i386/pcb.c b/i386/i386/pcb.c index 2da3804..888012c 100644 --- a/i386/i386/pcb.c +++ b/i386/i386/pcb.c @@ -96,7 +96,7 @@ void stack_attach( /* * Point top of kernel stack to user`s registers. */ - STACK_IEL(stack)->saved_state = &thread->pcb->iss; + STACK_IEL(stack)->saved_state = USER_REGS(thread); } /* @@ -298,7 +298,7 @@ void stack_handoff( * user registers. */ - STACK_IEL(stack)->saved_state = &new->pcb->iss; + STACK_IEL(stack)->saved_state = USER_REGS(new); } -- 2.1.4