entry: rework sched_save_state

Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
Michael Shaw 2026-07-22 01:25:21 -04:00
commit 1f7fd24961
3 changed files with 10 additions and 8 deletions

View file

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