diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2015-05-04 01:56:12 +0200 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2015-05-14 10:30:00 +0200 |
commit | d249cb9c783eba61fe7b364560f8dfa36cfb0215 (patch) | |
tree | 3d4d0a774cce2bf8c59281ffcce3f2f26d47952a /i386 | |
parent | 7803e9735dde445be3046a79bf1b4ca5ab525ac1 (diff) |
i386: use macro to compute address of saved registers
* i386/i386/pcb.c (stack_attach): Use `USER_REGS'.
(stack_handoff): Likewise.
Diffstat (limited to 'i386')
-rw-r--r-- | i386/i386/pcb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/i386/i386/pcb.c b/i386/i386/pcb.c index e8040c8..dabe481 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); } |