mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-30 14:08:21 +00:00
kernel: add a helper to retrieve the bsp CPU
This is useful to be able to e.g. set affinity for the BSP CPU.
This commit is contained in:
@@ -124,3 +124,7 @@ void kernel_entry() {
|
||||
sched_runinit();
|
||||
sched_threadexit();
|
||||
}
|
||||
|
||||
cpu_t *_bsp(void) {
|
||||
return &bsp_cpu;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user