bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH gnumach 2/2] yyy i386: less magic


From: Justus Winter
Subject: [PATCH gnumach 2/2] yyy i386: less magic
Date: Wed, 6 May 2015 13:30:21 +0200

---
 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]