Changeset 8e1ea655 in mainline for generic/src/mm/as.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/mm/as.c

    r5c9a08b r8e1ea655  
    6666{
    6767        as_arch_init();
    68         AS_KERNEL = as_create(FLAG_AS_KERNEL | FLAG_AS_EARLYMALLOC);
     68        AS_KERNEL = as_create(FLAG_AS_KERNEL);
    6969        if (!AS_KERNEL)
    7070                panic("can't create kernel address space\n");
     
    7979        as_t *as;
    8080
    81         if (flags & FLAG_AS_EARLYMALLOC)
    82                 as = (as_t *) early_malloc(sizeof(as_t));
    83         else
    84                 as = (as_t *) malloc(sizeof(as_t));
     81        as = (as_t *) malloc(sizeof(as_t));
    8582        if (as) {
    8683                list_initialize(&as->as_with_asid_link);
Note: See TracChangeset for help on using the changeset viewer.