Ignore:
Timestamp:
Dec 12, 2014, 5:00:43 PM (10 years ago)
Author:
alain
Message:

Adding a new step in the kernel_init() procedure:
Processor[0][0][0] initialises the distributed kernel heap
allocators, and the distributed lock protecting TTY0.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_kernel/sys_handler.c

    r459 r467  
    255255
    256256    _it_disable( save_sr_ptr );
    257     _simple_lock_acquire( &_tty_tx_lock[channel] );
     257    _sbt_lock_acquire( &_tty_tx_lock[channel] );
    258258    return 0;
    259259}
     
    267267    if( channel >= NB_TTY_CHANNELS ) return -1;
    268268
    269     _simple_lock_release( &_tty_tx_lock[channel] );
     269    _sbt_lock_release( &_tty_tx_lock[channel] );
    270270    _it_restore( save_sr_ptr );
    271271    return 0;
     
    501501    if ( is_rx )
    502502    {
    503         _lock_init( &_nic_rx_lock[nic_channel] );
     503        _spin_lock_init( &_nic_rx_lock[nic_channel] );
    504504        _nic_rx_chbuf[nic_channel].index = 0;
    505505        for( index = 0 ; index < GIET_NIC_NBUFS ; index++ )
     
    510510    else
    511511    {
    512         _lock_init( &_nic_tx_lock[nic_channel] );
     512        _spin_lock_init( &_nic_tx_lock[nic_channel] );
    513513        _nic_tx_chbuf[nic_channel].index = 0;
    514514        for( index = 0 ; index < GIET_NIC_NBUFS ; index++ )
     
    642642
    643643    // get the lock protecting the chbuf
    644     _lock_acquire( lock );
     644    _spin_lock_acquire( lock );
    645645
    646646    // polling on the kernel chbuf status
     
    712712
    713713    // release the lock protecting the chbuf
    714     _lock_release( lock );
     714    _spin_lock_release( lock );
    715715   
    716716#if GIET_DEBUG_NIC
Note: See TracChangeset for help on using the changeset viewer.