Rev 334 | Rev 370 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 334 | Rev 349 | ||
---|---|---|---|
Line 110... | Line 110... | ||
110 | return ((struct madt_l_apic *) madt_entries_index[madt_l_apic_entry_index + i])->apic_id; |
110 | return ((struct madt_l_apic *) madt_entries_index[madt_l_apic_entry_index + i])->apic_id; |
111 | } |
111 | } |
112 | 112 | ||
113 | int madt_cmp(void * a, void * b) |
113 | int madt_cmp(void * a, void * b) |
114 | { |
114 | { |
115 | return |
115 | return |
116 | (((struct madt_apic_header *) a)->type > ((struct madt_apic_header *) b)->type) ? |
116 | (((struct madt_apic_header *) a)->type > ((struct madt_apic_header *) b)->type) ? |
117 | 1 : |
117 | 1 : |
118 | ((((struct madt_apic_header *) a)->type < ((struct madt_apic_header *) b)->type) ? -1 : 0); |
118 | ((((struct madt_apic_header *) a)->type < ((struct madt_apic_header *) b)->type) ? -1 : 0); |
119 | } |
119 | } |
120 | 120 | ||
121 | void acpi_madt_parse(void) |
121 | void acpi_madt_parse(void) |
122 | { |
122 | { |
123 | - | ||
124 | - | ||
125 | struct madt_apic_header *end = (struct madt_apic_header *) (((__u8 *) acpi_madt) + acpi_madt->header.length); |
123 | struct madt_apic_header *end = (struct madt_apic_header *) (((__u8 *) acpi_madt) + acpi_madt->header.length); |
126 | struct madt_apic_header *h; |
124 | struct madt_apic_header *h; |
127 | 125 | ||
128 | l_apic = (__u32 *) (__native) acpi_madt->l_apic_address; |
126 | l_apic = (__u32 *) (__native) acpi_madt->l_apic_address; |
129 | 127 |