Changeset 605 for soft/giet_vm/giet_drivers/tty_driver.c
- Timestamp:
- Jul 13, 2015, 3:10:27 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_drivers/tty_driver.c
r604 r605 60 60 unsigned int channel ) // TTY channel 61 61 { 62 unsigned int gpid = _get_procid();63 unsigned int cluster_xy = gpid >> P_WIDTH;64 65 // reset WTI in XCU if WTI type66 if ( irq_type == IRQ_TYPE_WTI )67 {68 unsigned int value;69 _xcu_get_wti_value( cluster_xy, irq_id, &value );70 }71 72 62 // transfer character to kernel buffer and acknowledge TTY IRQ 73 63 _tty_rx_buf[channel] = _tty_get_register( channel, TTY_READ ); … … 80 70 81 71 #if GIET_DEBUG_IRQS // we don't take the TTY lock to avoid deadlock 72 unsigned int gpid = _get_procid(); 73 unsigned int cluster_xy = gpid >> P_WIDTH; 82 74 unsigned int x = cluster_xy >> Y_WIDTH; 83 75 unsigned int y = cluster_xy & ((1<<Y_WIDTH)-1);
Note: See TracChangeset
for help on using the changeset viewer.