Changeset 393


Ignore:
Timestamp:
Aug 17, 2017, 11:02:42 AM (4 years ago)
Author:
max@…
Message:

Use panic().

File:
1 edited

Legend:

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

    r389 r393  
    740740    if( error )
    741741    {
    742         printk("\n[PANIC] in %s : illegal core identifiers"
    743                " gid = %x / cxy = %x / lid = %d\n",
    744                __FUNCTION__ , core_lid , core_cxy , core_lid );
    745         hal_core_sleep();
     742        panic("illegal core identifiers gid = %x / cxy = %x / lid = %d",
     743              core_lid , core_cxy , core_lid );
    746744    }
    747745
     
    753751        if( error )
    754752        {
    755             printk("\n[PANIC] in %s : cannot initialise cluster %x",
    756                    __FUNCTION__ , local_cxy );
    757             hal_core_sleep();
     753            panic("cannot initialise cluster %x", local_cxy );
    758754        }
    759755    }
     
    852848    if( error )
    853849    {
    854         printk("\n[PANIC] in %s : core[%x][%d] cannot initialize idle thread\n",
    855                       __FUNCTION__ , local_cxy , core_lid );
    856         hal_core_sleep();
     850        panic("core[%x][%d] cannot initialize idle thread",
     851              local_cxy , core_lid );
    857852    }
    858853
     
    918913        else
    919914        {
    920             _panic("\n[PANIC] in %s : root FS must be FATFS\n", __FUNCTION__ );
     915            panic("root FS must be FATFS");
    921916        }
    922917
Note: See TracChangeset for help on using the changeset viewer.