Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 333 → Rev 334

/SPARTAN/trunk/arch/ia32/src/acpi/madt.c
131,7 → 131,6
for (h = &acpi_madt->apic_header[0]; h < end; h = (struct madt_apic_header *) (((__u8 *) h) + h->length)) {
madt_entries_index_cnt++;
}
printf("MADT: Found %d entries\n", madt_entries_index_cnt);
 
/* create madt apic entries index array */
madt_entries_index = (struct madt_apic_header * *) malloc(madt_entries_index_cnt * sizeof(struct madt_apic_header * *));
142,7 → 141,6
madt_entries_index[index++] = h;
}
 
 
/* Quicksort MADT index structure */
qsort(madt_entries_index, madt_entries_index_cnt, sizeof(__address), &madt_cmp);