Changeset bb68433 in mainline for generic/src/cpu/cpu.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
  • generic/src/cpu/cpu.c

    r85dc2e7 rbb68433  
    5454        if (config.cpu_active == 1) {
    5555        #endif /* CONFIG_SMP */
    56                 cpus = (cpu_t *) malloc(sizeof(cpu_t) * config.cpu_count);
     56                cpus = (cpu_t *) malloc(sizeof(cpu_t) * config.cpu_count,
     57                                        FRAME_ATOMIC);
    5758                if (!cpus)
    5859                        panic("malloc/cpus");
Note: See TracChangeset for help on using the changeset viewer.