Changeset 611 for trunk/hal


Ignore:
Timestamp:
Jan 9, 2019, 3:02:51 PM (6 years ago)
Author:
alain
Message:

Introduce sigificant modifs in VFS to support the <ls> command,
and the . and .. directories entries.

Location:
trunk/hal/tsar_mips32/core
Files:
2 edited

Legend:

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

    r610 r611  
    455455            else                                                // undefined coprocessor
    456456            {
    457                 printk("\n[USER_ERROR] in %s for thread %x in process %x\n"
     457                printk("\n[USER_ERROR] in %s for thread[%x,%x]\n"
    458458                "   undefined coprocessor / epc %x\n",
    459                 __FUNCTION__, this->trdid, this->process->pid, excPC );
     459                __FUNCTION__, this->process->pid, this->trdid, excPC );
    460460
    461461                        error = EXCP_USER_ERROR;
     
    465465        case XCODE_OVR:    // Arithmetic Overflow : user fatal error
    466466        {
    467             printk("\n[USER_ERROR] in %s for thread %x in process %x\n"
     467            printk("\n[USER_ERROR] in %s for thread[%x,%x]\n"
    468468            "   arithmetic overflow / epc %x\n",
    469             __FUNCTION__, this->trdid, this->process->pid, excPC );
     469            __FUNCTION__, this->process->pid, this->trdid, excPC );
    470470
    471471                    error = EXCP_USER_ERROR;
     
    474474        case XCODE_RI:     // Reserved Instruction : user fatal error
    475475        {
    476             printk("\n[USER_ERROR] in %s for thread %x in process %x\n"
     476            printk("\n[USER_ERROR] in %s for thread[%x,%x]\n"
    477477            "   reserved instruction / epc %x\n",
    478             __FUNCTION__, this->trdid, this->process->pid, excPC );
     478            __FUNCTION__, this->process->pid, this->trdid, excPC );
    479479
    480480                    error = EXCP_USER_ERROR;
     
    483483        case XCODE_ADEL:   // user fatal error
    484484        {
    485             printk("\n[USER_ERROR] in %s for thread %x in process %x\n"
     485            printk("\n[USER_ERROR] in %s for thread[%x,%x]\n"
    486486            "   illegal data load address / epc %x / bad_address %x\n",
    487             __FUNCTION__, this->trdid, this->process->pid, excPC, hal_get_bad_vaddr() );
     487            __FUNCTION__, this->process->pid, this->trdid, excPC, hal_get_bad_vaddr() );
    488488
    489489                    error = EXCP_USER_ERROR;
     
    492492        case XCODE_ADES:   //   user fatal error
    493493        {
    494             printk("\n[USER_ERROR] in %s for thread %x in process %x\n"
     494            printk("\n[USER_ERROR] in %s for thread[%x,%x]\n"
    495495            "   illegal data store address / epc %x / bad_address %x\n",
    496             __FUNCTION__, this->trdid, this->process->pid, excPC, hal_get_bad_vaddr() );
     496            __FUNCTION__, this->process->pid, this->trdid, excPC, hal_get_bad_vaddr() );
    497497
    498498                    error = EXCP_USER_ERROR;
  • trunk/hal/tsar_mips32/core/hal_gpt.c

    r587 r611  
    137137uint32_t cycle = (uint32_t)hal_get_cycles();
    138138if( DEBUG_HAL_GPT_CREATE < cycle )
    139 printk("\n[DBG] %s : thread[%x,%x] enter / cycle %d\n",
     139printk("\n[%s] : thread[%x,%x] enter / cycle %d\n",
    140140__FUNCTION__, this->process->pid, this->trdid, cycle );
    141141#endif
     
    167167cycle = (uint32_t)hal_get_cycles();
    168168if( DEBUG_HAL_GPT_CREATE < cycle )
    169 printk("\n[DBG] %s : thread[%x,%x] exit / cycle %d\n",
     169printk("\n[%s] : thread[%x,%x] exit / cycle %d\n",
    170170__FUNCTION__, this->process->pid, this->trdid, cycle );
    171171#endif
     
    194194thread_t * this  = CURRENT_THREAD;
    195195if( DEBUG_HAL_GPT_DESTROY < cycle )
    196 printk("\n[DBG] %s : thread[%x,%x] enter / cycle %d\n",
     196printk("\n[%s] : thread[%x,%x] enter / cycle %d\n",
    197197__FUNCTION__, this->process->pid, this->trdid, cycle );
    198198#endif
     
    267267cycle = (uint32_t)hal_get_cycles();
    268268if( DEBUG_HAL_GPT_DESTROY < cycle )
    269 printk("\n[DBG] %s : thread[%x,%x] exit / cycle %d\n",
     269printk("\n[%s] : thread[%x,%x] exit / cycle %d\n",
    270270__FUNCTION__, this->process->pid, this->trdid, cycle );
    271271#endif
     
    368368uint32_t cycle = (uint32_t)hal_get_cycles();
    369369if( DEBUG_HAL_GPT_SET_PTE < cycle )
    370 printk("\n[DBG] %s : thread[%x,%x] enter / vpn %x / attr %x / ppn %x / cluster %x / cycle %d\n",
     370printk("\n[%s] : thread[%x,%x] enter / vpn %x / attr %x / ppn %x / cluster %x / cycle %d\n",
    371371__FUNCTION__, this->process->pid, this->trdid, vpn, attr, ppn, gpt_cxy, cycle );
    372372#endif
     
    400400#if DEBUG_HAL_GPT_SET_PTE
    401401if( DEBUG_HAL_GPT_SET_PTE < cycle )
    402 printk("\n[DBG] %s : thread[%x,%x] map PTE1 / cxy %x / ix1 %x / pt1 %x / pte1 %x\n",
     402printk("\n[%s] : thread[%x,%x] map PTE1 / cxy %x / ix1 %x / pt1 %x / pte1 %x\n",
    403403__FUNCTION__, this->process->pid, this->trdid, gpt_cxy, ix1, pt1_ptr, pte1 );
    404404#endif
     
    443443#if DEBUG_HAL_GPT_SET_PTE
    444444if( DEBUG_HAL_GPT_SET_PTE < cycle )
    445 printk("\n[DBG] %s : thread[%x,%x] map PTD1 / cxy %x / ix1 %d / pt1 %x / ptd1 %x\n",
     445printk("\n[%s] : thread[%x,%x] map PTD1 / cxy %x / ix1 %d / pt1 %x / ptd1 %x\n",
    446446__FUNCTION__, this->process->pid, this->trdid, gpt_cxy, ix1, pt1_ptr, pte1 );
    447447#endif
     
    452452#if DEBUG_HAL_GPT_SET_PTE
    453453if( DEBUG_HAL_GPT_SET_PTE < cycle )
    454 printk("\n[DBG] %s : thread[%x,%x] get PTD1 / cxy %x / ix1 %d / pt1 %x / ptd1 %x\n",
     454printk("\n[%s] : thread[%x,%x] get PTD1 / cxy %x / ix1 %d / pt1 %x / ptd1 %x\n",
    455455__FUNCTION__, this->process->pid, this->trdid, gpt_cxy, ix1, pt1_ptr, pte1 );
    456456#endif
     
    470470#if DEBUG_HAL_GPT_SET_PTE
    471471if( DEBUG_HAL_GPT_SET_PTE < cycle )
    472 printk("\n[DBG] %s : thread[%x,%x] map PTE2 / cxy %x / ix2 %x / pt2 %x / attr %x / ppn %x\n",
     472printk("\n[%s] : thread[%x,%x] map PTE2 / cxy %x / ix2 %x / pt2 %x / attr %x / ppn %x\n",
    473473__FUNCTION__, this->process->pid, this->trdid, gpt_cxy, ix2, pt2_ptr, tsar_attr, ppn );
    474474#endif
     
    788788thread_t * this  = CURRENT_THREAD;
    789789if( DEBUG_HAL_GPT_COPY < cycle )
    790 printk("\n[DBG] %s : thread[%x,%x] enter / vpn %x / src_cxy %x / dst_cxy %x / cycle %d\n",
     790printk("\n[%s] : thread[%x,%x] enter / vpn %x / src_cxy %x / dst_cxy %x / cycle %d\n",
    791791__FUNCTION__, this->process->pid, this->trdid, vpn, src_cxy, local_cxy, cycle );
    792792#endif
     
    879879cycle = (uint32_t)hal_get_cycles;
    880880if( DEBUG_HAL_GPT_COPY < cycle )
    881 printk("\n[DBG] %s : thread[%x,%x] exit / copy done for vpn %x / cycle %d\n",
     881printk("\n[%s] : thread[%x,%x] exit / copy done for vpn %x / cycle %d\n",
    882882__FUNCTION__, this->process->pid, this->trdid, vpn, cycle );
    883883#endif
     
    896896cycle = (uint32_t)hal_get_cycles;
    897897if( DEBUG_HAL_GPT_COPY < cycle )
    898 printk("\n[DBG] %s : thread[%x,%x] exit / nothing done for vpn %x / cycle %d\n",
     898printk("\n[%s] : thread[%x,%x] exit / nothing done for vpn %x / cycle %d\n",
    899899__FUNCTION__, this->process->pid, this->trdid, vpn, cycle );
    900900#endif
Note: See TracChangeset for help on using the changeset viewer.