Changeset 50f4b95 in mainline for kernel/genarch/src/acpi/madt.c
- Timestamp:
- 2010-06-30T20:36:48Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 99718a2e
- Parents:
- 0a79ad9 (diff), e9f4b59 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/src/acpi/madt.c
r0a79ad9 r50f4b95 131 131 }; 132 132 133 static int madt_cmp(void *a, void *b )134 { 135 uint8_t typea = ( (struct madt_apic_header *) a)->type;136 uint8_t typeb = ( (struct madt_apic_header *) b)->type;133 static int madt_cmp(void *a, void *b, void *arg) 134 { 135 uint8_t typea = (*((struct madt_apic_header **) a))->type; 136 uint8_t typeb = (*((struct madt_apic_header **) b))->type; 137 137 138 138 if (typea > typeb) … … 208 208 209 209 /* Sort MADT index structure */ 210 qsort(madt_entries_index, madt_entries_index_cnt, sizeof(uintptr_t), 211 &madt_cmp); 210 if (!gsort(madt_entries_index, madt_entries_index_cnt, 211 sizeof(struct madt_apic_header *), madt_cmp, NULL)) 212 panic("Sorting error."); 212 213 213 214 /* Parse MADT entries */
Note:
See TracChangeset
for help on using the changeset viewer.