Changeset 04225a7 in mainline for generic/src/mm/as.c


Ignore:
Timestamp:
2006-02-04T19:06:07Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3260ada
Parents:
55ab0f1
Message:

Fixed boot process not to call malloc when slab not initialized.
Added simics workaround.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/src/mm/as.c

    r55ab0f1 r04225a7  
    6666{
    6767        as_arch_init();
    68         AS_KERNEL = as_create(FLAG_AS_KERNEL);
     68        AS_KERNEL = as_create(FLAG_AS_KERNEL | FLAG_AS_EARLYMALLOC);
    6969        if (!AS_KERNEL)
    7070                panic("can't create kernel address space\n");
     
    7979        as_t *as;
    8080
    81         as = (as_t *) early_malloc(sizeof(as_t));
     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));
    8285        if (as) {
    8386                list_initialize(&as->as_with_asid_link);
Note: See TracChangeset for help on using the changeset viewer.