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/scheduler.c

    r1 r14  
    2222 */
    2323
    24 #include <almos_config.h>
     24#include <kernel_config.h>
    2525#include <hal_types.h>
    2626#include <hal_irqmask.h>
     
    112112    if( thread_can_yield() == false )
    113113    {
    114         printk("\n[ERROR] in %s : thread %x in process %x on core %d in cluster %x"
     114        printk("\n[PANIC] in %s : thread %x in process %x on core[%x][%d]"
    115115               " did not released all locks\n",
    116116               __FUNCTION__ , thread->trdid , thread->process->pid,
    117                thread->core->lid , local_cxy );
     117               local_cxy , thread->core->lid );
    118118        hal_core_sleep();
    119119    }
     
    237237    if( thread_can_yield() == false )
    238238    {
    239         printk("\n[PANIC] in %s : thread %x for process %x on core %d in cluster %x"
    240                " has not released all locks\n",
    241                __FUNCTION__, current->trdid, current->process->pid, core->lid, local_cxy );
     239        printk("\n[PANIC] in %s : thread %x for process %x on core_gid %x"
     240               " has not released all locks at cycle %d\n",
     241               __FUNCTION__, current->trdid, current->process->pid,
     242               local_cxy , core->lid , hal_time_stamp() );
    242243        hal_core_sleep();
    243244    }
     
    256257    {
    257258        printk("\n[PANIC] in %s : detected stack overflow for thread %x of process %x"
    258                " on core %d in cluster %x\n",
    259                __FUNCTION__, next->trdid, next->process->pid, core->lid, local_cxy);
     259               " on core [%x][%d]\n",
     260               __FUNCTION__, next->trdid, next->process->pid, local_cxy , core->lid );
    260261        hal_core_sleep();
    261262        }
    262263       
    263264        sched_dmsg("\n[INFO] %s on core %d in cluster %x / old thread = %x / new thread = %x\n",
    264                __FUNCTION__, core->lid, cluster->cxy, current->trdid, next->trdid );
     265               __FUNCTION__, core->lid, local_cxy, current->trdid, next->trdid );
    265266
    266267    // switch contexts if new thread
     
    342343       
    343344        sched_dmsg("INFO : %s on core %d in cluster %x / old thread = %x / new thread = %x\n",
    344                __FUNCTION__, core->lid, cluster->cxy, current->trdid, new->trdid );
     345               __FUNCTION__, core->lid, local_cxy, current->trdid, new->trdid );
    345346
    346347    // switch contexts if new thread
Note: See TracChangeset for help on using the changeset viewer.