Changeset 374


Ignore:
Timestamp:
Aug 14, 2017, 2:51:39 PM (7 years ago)
Author:
max@…
Message:

Use panic().

Location:
trunk/kernel/kern
Files:
7 edited

Legend:

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

    r296 r374  
    305305    if( (lpid >= CONFIG_MAX_PROCESS_PER_CLUSTER) || (owner_cxy != local_cxy) )
    306306    {
    307         printk("\n[PANIC] in %s : illegal PID\n", __FUNCTION__ );
    308         hal_core_sleep();
     307        panic("illegal PID");
    309308    }
    310309
  • trunk/kernel/kern/dqdt.c

    r286 r374  
    7272    if( (x_size > 32) || (y_size > 32) )
    7373    {
    74         printk("\n[PANIC] in %s : illegal mesh size for DQDT support\n",
    75                __FUNCTION__ );
    76         hal_core_sleep();
     74        panic("illegal mesh size for DQDT support");
    7775    }
    7876
  • trunk/kernel/kern/printk.h

    r372 r374  
    102102             char       * format , ... );
    103103
    104 #define panic(fmt, ...)     _panic("[PANIC] %s(): " fmt, __func__, ##__VA_ARGS__)
     104#define panic(fmt, ...)     _panic("[PANIC] %s(): " fmt "\n", __func__, ##__VA_ARGS__)
    105105
    106106///////////////////////////////////////////////////////////////////////////////////
  • trunk/kernel/kern/process.c

    r373 r374  
    245245        if( process->th_nr != 0 )
    246246    {
    247         panic("process %x in cluster %x has still active threads\n",
     247        panic("process %x in cluster %x has still active threads",
    248248              process->pid , local_cxy );
    249249    }
  • trunk/kernel/kern/rpc.c

    r337 r374  
    8585void __attribute__((noinline)) rpc_undefined()
    8686{
    87     printk("\n[PANIC] ‰s called in cluster %x\n", __FUNCTION__ , local_cxy );
    88     hal_core_sleep();
     87        panic("called in cluster %x", local_cxy );
    8988}
    9089
     
    19591958        if( this->trdid != rpc_fifo->owner )
    19601959        {
    1961             printk("\n[PANIC] in %s : thread %x on core[%x,%d] not owner of RPC_FIFO\n",
    1962             __FUNCTION__, this->trdid, local_cxy, this->core->lid );
    1963             hal_core_sleep();
     1960            panic("thread %x on core[%x,%d] not owner of RPC_FIFO",
     1961                  this->trdid, local_cxy, this->core->lid );
    19641962        }
    19651963 
  • trunk/kernel/kern/scheduler.c

    r337 r374  
    133133    if( thread_can_yield() == false )
    134134    {
    135         printk("\n[PANIC] in %s : thread %x in process %x on core[%x][%d]"
    136                " did not released all locks\n",
    137                __FUNCTION__ , thread->trdid , thread->process->pid,
    138                local_cxy , thread->core->lid );
    139         hal_core_sleep();
     135        panic("thread %x in process %x on core[%x][%d]"
     136              " did not released all locks",
     137              thread->trdid , thread->process->pid,
     138              local_cxy , thread->core->lid );
    140139    }
    141140
  • trunk/kernel/kern/thread.c

    r373 r374  
    471471    if( core_lid >= LOCAL_CLUSTER->cores_nr )
    472472    {
    473         panic("illegal core_lid / cores = %d / lid = %d / cxy = %x\n",
     473        panic("illegal core_lid / cores = %d / lid = %d / cxy = %x",
    474474              LOCAL_CLUSTER->cores_nr , core_lid , local_cxy );
    475475    }
Note: See TracChangeset for help on using the changeset viewer.