tls: track cpu_id

Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
Michael Shaw 2026-07-22 00:33:02 -04:00
commit 308ba36aab
4 changed files with 13 additions and 5 deletions

View file

@ -30,6 +30,11 @@ struct proc *get_cur_proc()
return t->proc;
}
u32 cpu_id()
{
return tls_get()->cpu_id;
}
/* the thread that calls this will be lost, so it should only be called
* on the initial process, and while doing an exec
*/