Ignore:
Timestamp:
Dec 20, 2017, 4:51:09 PM (7 years ago)
Author:
alain
Message:

Fix bugs in exec

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/tsar_mips32/core/hal_exception.c

    r408 r409  
    9999xcode_values_t;
    100100
    101 ////////////////////////////////////////////////////
    102 static char * hal_mmu_exception_str( uint32_t code )
     101/////////////////////////////////////////////
     102char * hal_mmu_exception_str( uint32_t code )
    103103{
    104104    if     ( code == MMU_WRITE_PT1_UNMAPPED        ) return "WRITE_PT1_UNMAPPED";
     
    201201    }
    202202
    203 // @@@
    204 thread_t * parent = (thread_t *)0xa4000;
    205 uint32_t cond = (this == 0xe0000) && (hal_time_stamp() > 5380000);
    206 
    207 if( cond ) hal_gpt_display( this->process );
    208 if( cond ) hal_gpt_display( parent->process );
    209 if( cond ) printk("\n[DBG] %s : core[%x,%d] / is_ins %d / %s / vaddr %x\n",
     203excp_dmsg("\n[DBG] %s : core[%x,%d] / is_ins %d / %s / vaddr %x\n",
    210204__FUNCTION__ , local_cxy , this->core->lid , is_ins,
    211205hal_mmu_exception_str(excp_code) , bad_vaddr );
     
    267261                {
    268262
    269 if( cond ) printk("\n[DBG] %s : core[%x,%d] / copy-on-write handled for vaddr = %x\n",
     263excp_dmsg("\n[DBG] %s : core[%x,%d] / copy-on-write handled for vaddr = %x\n",
    270264__FUNCTION__ , local_cxy , this->core->lid , bad_vaddr );
    271265
     
    275269            else                             // non writable user error
    276270            {
    277                 printk("\n[ERROR] in %s for thread %x : write to non-writable vaddr = %x\n",
     271                printk("\n[ERROR] in %s for thread %x : non-writable vaddr = %x\n",
    278272                __FUNCTION__ , this->trdid , bad_vaddr );
    279273
Note: See TracChangeset for help on using the changeset viewer.