The apic_id_to_cpu_num[] map needs to be unsigned to support > 256 cores.

This commit is contained in:
Martin Whitaker 2022-02-01 15:40:52 +00:00
parent ccab9ab081
commit da0d2a9fc3

View File

@ -236,7 +236,7 @@ static const efi_guid_t EFI_ACPI_2_RDSP_GUID = { 0x8868e871, 0xe4f1, 0x11d3, {0x
static volatile apic_register_t *apic = NULL;
static int8_t apic_id_to_cpu_num[MAX_APIC_IDS];
static uint8_t apic_id_to_cpu_num[MAX_APIC_IDS];
static uint8_t cpu_num_to_apic_id[MAX_CPUS];