tls: track cpu_id
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
parent
3a3e57eb9c
commit
308ba36aab
4 changed files with 13 additions and 5 deletions
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue