entry: rework sched_save_state
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
parent
c6dea48b5f
commit
1f7fd24961
3 changed files with 10 additions and 8 deletions
|
|
@ -35,10 +35,7 @@ u32 cpu_id()
|
|||
return tls_get()->cpu_id;
|
||||
}
|
||||
|
||||
void sched_save_state(struct thread *t)
|
||||
{
|
||||
t->kstack_ptr = tls_get()->irq_rsp;
|
||||
}
|
||||
void fork_trampoline();
|
||||
|
||||
/* the thread that calls this will be lost, so it should only be called
|
||||
* on the initial process, and while doing an exec
|
||||
|
|
|
|||
Loading…
Reference in a new issue