Differentiate between logical CPU IDs and ACPI MADT IDs
All checks were successful
Build documentation / build-and-deploy (push) Successful in 34s

This commit is contained in:
2026-02-07 14:51:16 +01:00
parent 5fe9d0a158
commit 1ca3d11bac
3 changed files with 15 additions and 7 deletions

View File

@@ -26,6 +26,7 @@ struct cpu {
uint64_t lapic_ticks;
uint64_t lapic_id;
uint32_t id;
uint32_t acpi_id;
spin_lock_t lock;
@@ -34,7 +35,7 @@ struct cpu {
atomic_int proc_run_q_count;
};
struct cpu* cpu_make (uint64_t lapic_id, uint64_t cpu_id);
struct cpu* cpu_make (uint64_t lapic_id, uint64_t acpi_id);
struct cpu* cpu_get (void);
void cpu_request_sched (struct cpu* cpu);
struct cpu* cpu_find_lightest (void);