Subversion Repositories HelenOS-historic

Rev

Rev 814 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 814 Rev 822
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 * *) malloc(madt_entries_index_cnt * sizeof(struct madt_apic_header * *), FRAME_ATOMIC);
-
 
148
    if (!madt_entries_index)
-
 
149
        panic("Memory allocation error.");
148
 
150
 
149
    __u32 index = 0;
151
    __u32 index = 0;
150
 
152
 
151
    for (h = &acpi_madt->apic_header[0]; h < end; h = (struct madt_apic_header *) (((__u8 *) h) + h->length)) {
153
    for (h = &acpi_madt->apic_header[0]; h < end; h = (struct madt_apic_header *) (((__u8 *) h) + h->length)) {
152
        madt_entries_index[index++] = h;
154
        madt_entries_index[index++] = h;