Changeset 605 for soft


Ignore:
Timestamp:
Jul 13, 2015, 3:10:27 PM (9 years ago)
Author:
guerin
Message:

tty: don't manually reset WTI

It is already done in hardware, and can cause hardlocks.

File:
1 edited

Legend:

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

    r604 r605  
    6060                  unsigned int channel )   // TTY channel
    6161{
    62     unsigned int gpid       = _get_procid();
    63     unsigned int cluster_xy = gpid >> P_WIDTH;
    64 
    65     // reset WTI in XCU if WTI type
    66     if ( irq_type == IRQ_TYPE_WTI )
    67     {
    68         unsigned int value;
    69         _xcu_get_wti_value( cluster_xy, irq_id, &value );
    70     }
    71 
    7262    // transfer character to kernel buffer and acknowledge TTY IRQ
    7363    _tty_rx_buf[channel]  = _tty_get_register( channel, TTY_READ );
     
    8070
    8171#if GIET_DEBUG_IRQS  // we don't take the TTY lock to avoid deadlock
     72unsigned int gpid           = _get_procid();
     73unsigned int cluster_xy     = gpid >> P_WIDTH;
    8274unsigned int x              = cluster_xy >> Y_WIDTH;
    8375unsigned int y              = cluster_xy & ((1<<Y_WIDTH)-1);
Note: See TracChangeset for help on using the changeset viewer.