Ignore:
Timestamp:
Jan 8, 2018, 2:25:39 PM (4 years ago)
Author:
alain
Message:

Fix a bug in hal_kentry.S : the "uzone" pointer in the thread descriptor
must not be modified in case of interrupt.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/syscalls/sys_panic.c

    r410 r418  
    4747        if( error )
    4848        {
    49         printk("\n[USER DBG] thread %x / process %x/ core[%x,%d] / cycle %d\n"
     49        printk("\n[USER PANIC] thread %x / process %x/ core[%x,%d] / cycle %d\n"
    5050        "cause unknown, because string not in user space\n",
    5151        this->trdid , process->pid , local_cxy , core->lid ,
     
    5656    if( hal_strlen_from_uspace( string ) >= 256 )
    5757        {
    58         printk("\n[USER DBG] thread %x / process %x/ core[%x,%d] / cycle %d\n"
     58        printk("\n[USER PANIC] thread %x / process %x/ core[%x,%d] / cycle %d\n"
    5959        "cause unknown, because string larger than 256 characters\n",
    6060        this->trdid , process->pid , local_cxy , core->lid ,
     
    6666
    6767    // print user debug message on kernel terminal
    68     printk("\n[USER DBG] thread %x / process %x / core[%x,%d] / cycle %d\n %s\n",
     68    printk("\n[USER PANIC] thread %x / process %x / core[%x,%d] / cycle %d\n %s\n",
    6969    this->trdid , process->pid , local_cxy, core->lid ,
    7070    (uint32_t)hal_get_cycles() , kbuf );
     
    7272        return 0;
    7373
    74 }  // end sys_get_cycle()
     74}  // end sys_panic()
Note: See TracChangeset for help on using the changeset viewer.