Changeset 406 for trunk/kernel/devices


Ignore:
Timestamp:
Aug 29, 2017, 12:03:37 PM (7 years ago)
Author:
alain
Message:

This version executed successfully the user "init" process on a mono-processor TSAR architecture.

Location:
trunk/kernel/devices
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/devices/dev_dma.c

    r296 r406  
    8888    thread_t * this = CURRENT_THREAD;
    8989
    90     dma_dmsg("\n[INFO] %s : enters for thread %x / dst = %l /src = %l / size = %x\n",
     90    dma_dmsg("\n[DMSG] %s : enters for thread %x / dst = %l /src = %l / size = %x\n",
    9191              __FUNCTION__ , this->trdid , dst_xp , src_xp , size );
    9292
     
    110110    chdev_register_command( dev_xp , this );
    111111
    112     dma_dmsg("\n[INFO] %s : completes for thread %x / error = %d\n",
     112    dma_dmsg("\n[DMSG] %s : completes for thread %x / error = %d\n",
    113113             __FUNCTION__ ,  this->trdid , this->dma_cmd.error );
    114114
  • trunk/kernel/devices/dev_fbf.c

    r279 r406  
    143143    }
    144144
    145     fbf_dmsg("\n[INFO] %s : thread %x in process %x / vaddr = %p / paddr = %l\n",
     145    fbf_dmsg("\n[DMSG] %s : thread %x in process %x / vaddr = %p / paddr = %l\n",
    146146             __FUNCTION__ , this->trdid , this->process->pid , buffer , buf_paddr );
    147147
  • trunk/kernel/devices/dev_ioc.c

    r401 r406  
    9999    thread_t * this = CURRENT_THREAD;              // pointer on client thread
    100100
    101     ioc_dmsg("\n[INFO] %s : thread %x in process %x"
     101    ioc_dmsg("\n[DMSG] %s : thread %x in process %x"
    102102             " for lba = %x / buffer = %x / at cycle %d\n",
    103103             __FUNCTION__ , this->trdid , this->process->pid ,
     
    128128    chdev_register_command( dev_xp , this );
    129129
    130     ioc_dmsg("\n[INFO] in %s : thread %x in process %x"
     130    ioc_dmsg("\n[DMSG] in %s : thread %x in process %x"
    131131             " completes / error = %d / at cycle %d\n",
    132132             __FUNCTION__ , this->trdid , this->process->pid ,
     
    162162    thread_t * this = CURRENT_THREAD;
    163163
    164     ioc_dmsg("\n[INFO] %s : core[%x,%d] enter for %d blocks / lba = %x / cycle %d\n",
     164    ioc_dmsg("\n[DMSG] %s : core[%x,%d] enter for %d blocks / lba = %x / cycle %d\n",
    165165    __FUNCTION__ , local_cxy , this->core->lid , count , lba , hal_time_stamp() );
    166166
     
    199199    dev_pic_enable_irq( lid , ioc_xp );
    200200
    201     ioc_dmsg("\n[INFO] %s : core[%x,%d] exit / error = %d / cycle %d\n",
     201    ioc_dmsg("\n[DMSG] %s : core[%x,%d] exit / error = %d / cycle %d\n",
    202202    __FUNCTION__ , local_cxy , this->core->lid , this->ioc_cmd.error , hal_time_stamp() );
    203203
  • trunk/kernel/devices/dev_mmc.c

    r279 r406  
    9999    thread_t * this = CURRENT_THREAD;
    100100
    101     mmc_dmsg("\n[INFO] %s enters for thread %x in process %x / buf_xp = %l\n",
     101    mmc_dmsg("\n[DMSG] %s enters for thread %x in process %x / buf_xp = %l\n",
    102102                 __FUNCTION__ , this->trdid , this->process->pid , buf_xp );
    103103
     
    124124    error = dev_mmc_access( this );
    125125
    126     mmc_dmsg("\n[INFO] %s completes for thread %x in process %x / error = %d\n",
     126    mmc_dmsg("\n[DMSG] %s completes for thread %x in process %x / error = %d\n",
    127127             __FUNCTION__ , this->trdid , this->process->pid , error );
    128128
     
    139139    thread_t * this = CURRENT_THREAD;
    140140
    141     mmc_dmsg("\n[INFO] %s enters for thread %x in process %x / buf_xp = %l\n",
     141    mmc_dmsg("\n[DMSG] %s enters for thread %x in process %x / buf_xp = %l\n",
    142142                 __FUNCTION__ , this->trdid , this->process->pid , buf_xp );
    143143
     
    164164    error = dev_mmc_access( this );
    165165
    166     mmc_dmsg("\n[INFO] %s completes for thread %x in process %x / error = %d\n",
     166    mmc_dmsg("\n[DMSG] %s completes for thread %x in process %x / error = %d\n",
    167167                 __FUNCTION__ , this->trdid , this->process->pid , error );
    168168
  • trunk/kernel/devices/dev_nic.c

    r296 r406  
    9797    core_t * core = thread_ptr->core;
    9898
    99     nic_dmsg("\n[INFO] %s enters for NIC-RX thread on core %d in cluster %x\n",
     99    nic_dmsg("\n[DMSG] %s enters for NIC-RX thread on core %d in cluster %x\n",
    100100                 __FUNCTION__ , core->lid , local_cxy );
    101101
     
    147147    pkd->length = thread_ptr->nic_cmd.length;
    148148
    149     nic_dmsg("\n[INFO] %s exit for NIC-RX thread on core %d in cluster %x\n",
     149    nic_dmsg("\n[DMSG] %s exit for NIC-RX thread on core %d in cluster %x\n",
    150150             __FUNCTION__ , core->lid , local_cxy );
    151151
     
    167167    core_t * core = thread_ptr->core;
    168168
    169     nic_dmsg("\n[INFO] %s enters for NIC-RX thread on core %d in cluster %x\n",
     169    nic_dmsg("\n[DMSG] %s enters for NIC-RX thread on core %d in cluster %x\n",
    170170                 __FUNCTION__ , core->lid , local_cxy );
    171171
     
    215215    if( error ) return error;
    216216
    217     nic_dmsg("\n[INFO] %s exit for NIC-TX thread on core %d in cluster %x\n",
     217    nic_dmsg("\n[DMSG] %s exit for NIC-TX thread on core %d in cluster %x\n",
    218218             __FUNCTION__ , core->lid , local_cxy );
    219219
  • trunk/kernel/devices/dev_pic.c

    r337 r406  
    8383                         xptr_t  src_chdev_xp )
    8484{
    85     irq_dmsg("\n[INFO] %s : core = [%x,%d] / source_chdev_xp = %l\n",
    86              __FUNCTION__ , local_cxy , lid , src_chdev_xp );
     85    irq_dmsg("\n[DMSG] %s : core = [%x,%d] / src_chdev_cxy = %x / src_chdev_ptr = %x\n",
     86    __FUNCTION__ , local_cxy , lid , GET_CXY(src_chdev_xp) , GET_PTR(src_chdev_xp) );
    8787
    8888    // get pointer on PIC chdev
     
    101101                          xptr_t  src_chdev_xp )
    102102{
    103     irq_dmsg("\n[INFO] %s : core = [%x,%d] / source_chdev_xp = %l\n",
    104              __FUNCTION__ , local_cxy , lid , src_chdev_xp );
     103    irq_dmsg("\n[DMSG] %s : core = [%x,%d] / src_chdev_cxy = %x / src_chdev_ptr = %x\n",
     104    __FUNCTION__ , local_cxy , lid , GET_CXY(src_chdev_xp) , GET_PTR(src_chdev_xp) );
    105105
    106106    // get pointer on PIC chdev
     
    118118void dev_pic_enable_timer( uint32_t period )
    119119{
    120     irq_dmsg("\n[INFO] %s : core = [%x,%d] / period = %d\n",
    121              __FUNCTION__ , local_cxy , CURRENT_THREAD->core->lid , period );
     120    irq_dmsg("\n[DMSG] %s : core = [%x,%d] / period = %d\n",
     121    __FUNCTION__ , local_cxy , CURRENT_THREAD->core->lid , period );
    122122
    123123    // get pointer on PIC chdev
     
    135135void dev_pic_enable_ipi()
    136136{
    137     irq_dmsg("\n[INFO] %s : core = [%x,?]\n",
    138              __FUNCTION__ , local_cxy );
     137    irq_dmsg("\n[DMSG] %s : core = [%x,%d]\n",
     138    __FUNCTION__ , local_cxy , CURRENT_THREAD->core->lid );
    139139
    140140    // get pointer on PIC chdev
     
    153153                       lid_t  lid )
    154154{
    155     irq_dmsg("\n[INFO] %s : enter / src_core = [%x,%d] / dst_core = [%x,%d] / cycle %d\n",
    156              __FUNCTION__, local_cxy, CURRENT_THREAD->core->lid, cxy, lid, hal_time_stamp() );
     155    irq_dmsg("\n[DMSG] %s : enter / src_core = [%x,%d] / dst_core = [%x,%d] / cycle %d\n",
     156    __FUNCTION__, local_cxy, CURRENT_THREAD->core->lid, cxy, lid, hal_time_stamp() );
    157157
    158158    // get pointer on PIC chdev
     
    166166    f( cxy , lid );
    167167
    168     irq_dmsg("\n[INFO] %s : exit / src_core = [%x,%d] / dst_core = [%x,%d] / cycle %d\n",
    169              __FUNCTION__, local_cxy, CURRENT_THREAD->core->lid, cxy, lid, hal_time_stamp() );
     168    irq_dmsg("\n[DMSG] %s : exit / src_core = [%x,%d] / dst_core = [%x,%d] / cycle %d\n",
     169    __FUNCTION__, local_cxy, CURRENT_THREAD->core->lid, cxy, lid, hal_time_stamp() );
    170170}
    171171
  • trunk/kernel/devices/dev_pic.h

    r279 r406  
    212212/*****************************************************************************************
    213213 * This function activates the TIM_IRQ for the calling core.
    214  * The <period> argument define the number of cycles between twoo successive IRQs.
    215  *****************************************************************************************
    216  * @ period      : number of cycles between IRQs.
     214 * The <period> argument is a number of milli-seconds between two successive IRQs.
     215 * It is converted to a number of cycles by the PIC driver implementation.
     216 *****************************************************************************************
     217 * @ period      : number of milliseconds.
    217218 ****************************************************************************************/
    218219void dev_pic_enable_timer( uint32_t period );
  • trunk/kernel/devices/dev_txt.c

    r296 r406  
    101101    thread_t * this = CURRENT_THREAD;
    102102
    103     txt_dmsg("\n[INFO] in %s : thread %x in process %x enters\n",
     103    txt_dmsg("\n[DMSG] in %s : thread %x in process %x enters\n",
    104104                 __FUNCTION__ , this->trdid , this->process->pid );
    105105
     
    123123    chdev_register_command( dev_xp , this );
    124124
    125     txt_dmsg("\n[INFO] in %s : thread %x in process %x completes / error = %d\n",
     125    txt_dmsg("\n[DMSG] in %s : thread %x in process %x completes / error = %d\n",
    126126             __FUNCTION__ , this->trdid , this->process->pid , this->txt_cmd.error );
    127127
Note: See TracChangeset for help on using the changeset viewer.