Changeset c5613b7 in mainline for generic/src/main/main.c


Ignore:
Timestamp:
2006-02-04T01:59:42Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
10e16a7
Parents:
81e52f2a
Message:

Added slab stress test.
Fixed race condition in slab allocator.
Moved initialization of slab to the point where we know correct config.cpu_count
Correctly passes tests on amd64, ia32 in both bochs & qemu.

File:
1 edited

Legend:

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

    r81e52f2a rc5613b7  
    164164        page_init();
    165165        tlb_init();
    166         slab_cache_init();
    167166        arch_post_mm_init();
    168167
     
    174173        arch_pre_smp_init();
    175174        smp_init();
     175        /* Slab must be initialized AFTER we know the number of processors */
     176        slab_cache_init();
     177
    176178        printf("config.memory_size=%dM\n", config.memory_size/(1024*1024));
    177179        printf("config.cpu_count=%d\n", config.cpu_count);
Note: See TracChangeset for help on using the changeset viewer.