Changeset 8e1ea655 in mainline for generic/src/main/main.c


Ignore:
Timestamp:
2006-02-05T21:51:19Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c585827
Parents:
5c9a08b
Message:

Early SLAB initialization, the cpu-cache is initialized later.
If you want to use slab_cache_create befor slab_cpu_enable, add
a flag SLAB_CACHE_MAGDEFERRED.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/src/main/main.c

    r5c9a08b r8e1ea655  
    161161        early_heap_init(config.heap_addr, config.heap_size + config.heap_delta);
    162162        frame_init();
     163        slab_cache_init();
    163164        as_init();
    164165        page_init();
     
    174175        smp_init();
    175176        /* Slab must be initialized AFTER we know the number of processors */
    176         slab_cache_init();
     177        slab_enable_cpucache();
    177178
    178179        printf("config.memory_size=%dM\n", config.memory_size/(1024*1024));
Note: See TracChangeset for help on using the changeset viewer.