Ignore:
Timestamp:
Apr 21, 2014, 5:46:38 AM (10 years ago)
Author:
alain
Message:

The main modif is in TTY driver: The hard lock implemented in the
vci_multi_tty component is not used anymore, because this (non cacheable)
lock was not scalable... It has been replaced by a software (cacheable) lock
that has a better scalability in case of hardware cache coherence.
(see the _tty_get_lock() and _tty_release_lock() functions)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_drivers/rdk_driver.c

    r298 r313  
    4747
    4848#if GIET_DEBUG_IOC_DRIVER
    49 _tty_get_lock( 0 );
    50 _puts("\n[IOC DEBUG] Enter _rdk_read() at cycle ");
    51 _putd( _get_proctime() );
    52 _puts(" for processor ");
    53 _putd( _get_procid() );
    54 _puts("\n - vaddr   = ");
    55 _putx( buffer );
    56 _puts("\n - sectors = ");
    57 _putd( count );
    58 _puts("\n - lba     = ");
    59 _putx( lba );
    60 _puts("\n");
    61 _tty_release_lock( 0 );
     49_printf("\n[IOC DEBUG] Enter _rdk_read() at cycle %d"
     50        "\n - vaddr   = %x"
     51        "\n - sectors = %d"
     52        "\n - lba     = %x",
     53        _get_proctime(), buffer, count, lba );
    6254#endif
    6355
     
    8476
    8577#if GIET_DEBUG_IOC_DRIVER
    86 _tty_get_lock( 0 );
    87 _puts("\n[IOC DEBUG] Enter _rdk_write() at cycle ");
    88 _putd( _get_proctime() );
    89 _puts(" for processor ");
    90 _putd( _get_procid() );
    91 _puts("\n - vaddr   = ");
    92 _putx( buffer );
    93 _puts("\n - sectors = ");
    94 _putd( count );
    95 _puts("\n - lba     = ");
    96 _putx( lba );
    97 _puts("\n");
    98 _tty_release_lock( 0 );
     78_printf("\n[IOC DEBUG] Enter _rdk_write() at cycle %d"
     79        "\n - vaddr   = %x"
     80        "\n - sectors = %d"
     81        "\n - lba     = %x",
     82        _get_proctime(), buffer, count, lba );
    9983#endif
    10084
Note: See TracChangeset for help on using the changeset viewer.