Changeset 7 for trunk/kernel/mm/khm.c


Ignore:
Timestamp:
Apr 26, 2017, 2:15:50 PM (8 years ago)
Author:
alain
Message:

Various bugs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/mm/khm.c

    r1 r7  
    4040{
    4141    // check config parameters
    42     if( (CONFIG_PPM_PAGE_SHIFT + CONFIG_PPM_HEAP_ORDER) >= 32 )
    43     {
    44         printk("\n[PANIC] in %s : CONFIG_PPM_HEAP_ORDER too large\n", __FUNCTION__ );
    45         hal_core_sleep();
    46     }
     42    assert( ((CONFIG_PPM_PAGE_SHIFT + CONFIG_PPM_HEAP_ORDER) < 32 ) , __FUNCTION__ ,
     43             "CONFIG_PPM_HEAP_ORDER too large" );
    4744
    4845    // initialize lock
     
    6562        khm->size    = heap_size;
    6663        khm->next    = (intptr_t)heap_base;
     64
     65    kinit_dmsg("\n[INFO] %s done in cluster %x at cycle %d\n",
     66               __FUNCTION__ , local_cxy , hal_time_stamp() );
    6767}
    6868
Note: See TracChangeset for help on using the changeset viewer.