Changeset 163 for trunk/hal/x86_64
- Timestamp:
- Jul 7, 2017, 2:46:34 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/x86_64/core/hal_acpi.c
r113 r163 107 107 static void hal_acpi_parse_madt(madt_t *madt) 108 108 { 109 madt_lapic_override_t *override; 109 110 void *ptr, *end; 110 111 subheader_t *sub; 112 size_t ncpu = 0; 111 113 112 114 extern paddr_t lapic_pa; … … 120 122 if (sub->Type == ACPI_MADT_TYPE_IO_APIC) { 121 123 hal_acpi_parse_ioapic((madt_ioapic_t *)sub); 124 } else if (sub->Type == ACPI_MADT_TYPE_LOCAL_APIC_OVERRIDE) { 125 override = (madt_lapic_override_t *)sub; 126 lapic_pa = (paddr_t)override->Address; 127 x86_printf("-> found LAPIC override\n"); 128 } else if (sub->Type == ACPI_MADT_TYPE_LOCAL_APIC) { 129 ncpu++; 122 130 } 123 // XXX: handle lapic override 131 124 132 ptr += sub->Length; 125 133 } 126 134 127 135 x86_printf("-> LAPIC address: %Z\n", lapic_pa); 136 x86_printf("-> number of CPUs: %z\n", ncpu); 128 137 } 129 138
Note: See TracChangeset
for help on using the changeset viewer.