|
ginnOS
The reference: libc, the libraries and the kernel
|
the data of each core (per-CPU data). More...
Functions | |
| void | cpu_init_boot (void) |
| set up the cpu_t of the boot core and point the per-CPU segment at it. | |
Variables | |
| cpu_t | cpus [CPU_MAX] |
| the data of all cores; index 0 is the boot core | |
| bool | cpu_ready |
| true once cpu_init_boot() has run, so cpu_current() is valid | |
| uint32_t | cpu_count = 1 |
| the number of cores that run: cpus[0] to cpus[cpu_count - 1] | |
the data of each core (per-CPU data).
| void cpu_init_boot | ( | void | ) |
set up the cpu_t of the boot core and point the per-CPU segment at it.
call it once, right after the GDT is loaded, before anything uses cpu_current().
| bool cpu_ready |
true once cpu_init_boot() has run, so cpu_current() is valid
| uint32_t cpu_count = 1 |
the number of cores that run: cpus[0] to cpus[cpu_count - 1]