diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2026-07-15 15:56:43 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2026-07-15 15:56:43 +0200 |
| commit | 014e52494a73ce80d9e4c47e4eab676213c25a03 (patch) | |
| tree | 4a1633c7d6308276db650602a0266582e2247de0 /arch/x86_64/kapi/cpu.cpp | |
| parent | 3130556cdab078de5db6fabdf6f2d57c05ced08a (diff) | |
| download | kernel-014e52494a73ce80d9e4c47e4eab676213c25a03.tar.xz kernel-014e52494a73ce80d9e4c47e4eab676213c25a03.zip | |
kernel/cpu: introduce core index number
Diffstat (limited to 'arch/x86_64/kapi/cpu.cpp')
| -rw-r--r-- | arch/x86_64/kapi/cpu.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/x86_64/kapi/cpu.cpp b/arch/x86_64/kapi/cpu.cpp index 70cd3635..c51e08b3 100644 --- a/arch/x86_64/kapi/cpu.cpp +++ b/arch/x86_64/kapi/cpu.cpp @@ -74,9 +74,10 @@ namespace kapi::cpu { auto is_bsp = !bsp_found; bsp_found = true; - auto core = kstd::make_unique<devices::cpu::core>(core_major, core_count, apic.processor_id(), is_bsp); - core->add_child(kstd::make_unique<arch::devices::local_apic>(interrupt_controller_major, core_count, apic.id(), - local_apic_address, is_bsp)); + auto core = + kstd::make_unique<devices::cpu::core>(core_major, core_count, core_count, apic.processor_id(), is_bsp); + core->add_child(kstd::make_unique<arch::devices::local_apic>(interrupt_controller_major, core_count, core_count, + apic.id(), local_apic_address, is_bsp)); cpu_bus->add_child(std::move(core)); ++core_count; } |
