summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--i386/i386/pcb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/i386/i386/pcb.c b/i386/i386/pcb.c
index f16f21a..09e2597 100644
--- a/i386/i386/pcb.c
+++ b/i386/i386/pcb.c
@@ -398,6 +398,8 @@ kern_return_t thread_setstatus(thread, flavor, tstate, count)
return(KERN_INVALID_ARGUMENT);
}
+ state = (struct i386_thread_state *) tstate;
+
if (flavor == i386_REGS_SEGS_STATE) {
/*
* Code and stack selectors must not be null,
@@ -416,8 +418,6 @@ kern_return_t thread_setstatus(thread, flavor, tstate, count)
return KERN_INVALID_ARGUMENT;
}
- state = (struct i386_thread_state *) tstate;
-
saved_state = USER_REGS(thread);
/*