Rev 534 | Rev 814 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 534 | Rev 778 | ||
---|---|---|---|
Line 142... | Line 142... | ||
142 | for (h = &acpi_madt->apic_header[0]; h < end; h = (struct madt_apic_header *) (((__u8 *) h) + h->length)) { |
142 | for (h = &acpi_madt->apic_header[0]; h < end; h = (struct madt_apic_header *) (((__u8 *) h) + h->length)) { |
143 | madt_entries_index_cnt++; |
143 | madt_entries_index_cnt++; |
144 | } |
144 | } |
145 | 145 | ||
146 | /* create madt apic entries index array */ |
146 | /* create madt apic entries index array */ |
147 | madt_entries_index = (struct madt_apic_header * *) malloc(madt_entries_index_cnt * sizeof(struct madt_apic_header * *)); |
147 | madt_entries_index = (struct madt_apic_header * *) early_malloc(madt_entries_index_cnt * sizeof(struct madt_apic_header * *)); |
148 | 148 | ||
149 | __u32 index = 0; |
149 | __u32 index = 0; |
150 | 150 | ||
151 | for (h = &acpi_madt->apic_header[0]; h < end; h = (struct madt_apic_header *) (((__u8 *) h) + h->length)) { |
151 | for (h = &acpi_madt->apic_header[0]; h < end; h = (struct madt_apic_header *) (((__u8 *) h) + h->length)) { |
152 | madt_entries_index[index++] = h; |
152 | madt_entries_index[index++] = h; |