Changeset 241


Ignore:
Timestamp:
Jul 20, 2017, 10:13:25 AM (4 years ago)
Author:
max@…
Message:

some LAPICs can be disabled

Location:
trunk/hal/x86_64/core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/x86_64/core/hal_acpi.c

    r240 r241  
    135135                } else if (sub->Type == ACPI_MADT_TYPE_LOCAL_APIC) {
    136136                        lapic = (madt_lapic_t *)sub;
    137                         cpu_activate(lapic->Id);
    138                         x86_printf("-> found LAPIC %z\n", (uint64_t)lapic->Id);
    139                         ncpu++;
     137                        if (lapic->LapicFlags & ACPI_MADT_LAPIC_ENABLED) {
     138                                cpu_activate(lapic->Id);
     139                                x86_printf("-> found LAPIC %z\n", (uint64_t)lapic->Id);
     140                                ncpu++;
     141                        }
    140142                }
    141143
  • trunk/hal/x86_64/core/hal_acpi.h

    r234 r241  
    146146 ******************************************************************************/
    147147
     148#define ACPI_MADT_LAPIC_ENABLED 0x01
     149
    148150enum AcpiMadtType {
    149151        ACPI_MADT_TYPE_LOCAL_APIC            = 0,
Note: See TracChangeset for help on using the changeset viewer.