Ignore:
Timestamp:
Jul 19, 2017, 10:03:41 AM (5 years ago)
Author:
max@…
Message:

Start adding some code for SMP support

File:
1 edited

Legend:

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

    r234 r235  
    111111static void hal_acpi_parse_madt(madt_t *madt)
    112112{
     113        madt_lapic_t *lapic;
    113114        madt_lapic_override_t *override;
    114115        void *ptr, *end;
     
    133134                        x86_printf("-> found LAPIC override\n");
    134135                } else if (sub->Type == ACPI_MADT_TYPE_LOCAL_APIC) {
     136                        lapic = (madt_lapic_t *)sub;
     137                        cpu_activate(lapic->Id);
     138                        x86_printf("-> found LAPIC %z\n", (uint64_t)lapic->Id);
    135139                        ncpu++;
    136140                }
Note: See TracChangeset for help on using the changeset viewer.