Ignore:
Timestamp:
May 3, 2017, 1:23:24 PM (5 years ago)
Author:
alain
Message:

Bugs fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/kern/process.c

    r5 r14  
    2424 */
    2525
    26 #include <almos_config.h>
     26#include <kernel_config.h>
    2727#include <hal_types.h>
    2828#include <hal_remote.h>
     
    546546    bool_t   found;
    547547
    548     if( process == NULL )
    549     {
    550         printk("\n[PANIC] in %s : process argument is NULL\n", __FUNCTION__ );
    551         hal_core_sleep();
    552     }
    553     if( thread == NULL )
    554     {
    555         printk("\n[PANIC] in %s : thread argument is NULL\n", __FUNCTION__ );
    556         hal_core_sleep();
    557     }
     548    assert( (process != NULL) , __FUNCTION__ , "process argument is NULL" );
     549
     550    assert( (thread != NULL) , __FUNCTION__ , "thread argument is NULL" );
    558551
    559552    // search a free slot in th_tbl[]
Note: See TracChangeset for help on using the changeset viewer.