Changeset bb68433 in mainline for genarch/src/acpi/matd.c


Ignore:
Timestamp:
2006-02-08T22:58:06Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7e4e532
Parents:
85dc2e7
Message:

Changed malloc to include second parameter and documented
recommended usage.
Added zone merging, made ia32 & amd64 to merge found zones.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • genarch/src/acpi/matd.c

    r85dc2e7 rbb68433  
    145145
    146146        /* 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.");
    148150
    149151        __u32 index = 0;
Note: See TracChangeset for help on using the changeset viewer.