Changeset e7f2ad68 in mainline for kernel/genarch/src
- Timestamp:
- 2009-02-15T13:57:29Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ee06f2a
- Parents:
- 826a4e8d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/src/kbd/ns16550.c
r826a4e8d re7f2ad68 139 139 sysinfo_set_item_val("kbd.port", NULL, port); 140 140 141 #ifdef CONFIG_NS16550_INTERRUPT_DRIVEN142 141 /* Enable interrupts */ 143 142 ns16550_ier_write(&ns16550, IER_ERBFI); 144 143 ns16550_mcr_write(&ns16550, MCR_OUT2); 145 #endif146 144 147 145 uint8_t c; … … 199 197 void ns16550_poll(void) 200 198 { 201 #ifndef CONFIG_NS16550_INTERRUPT_DRIVEN202 ipl_t ipl;203 204 ipl = interrupts_disable();205 spinlock_lock(&ns16550_irq.lock);206 207 if (ns16550_lsr_read(&ns16550) & LSR_DATA_READY) {208 if (ns16550_irq.notif_cfg.notify && ns16550_irq.notif_cfg.answerbox) {209 /*210 * Send IPC notification.211 */212 ipc_irq_send_notif(&ns16550_irq);213 spinlock_unlock(&ns16550_irq.lock);214 interrupts_restore(ipl);215 return;216 }217 }218 219 spinlock_unlock(&ns16550_irq.lock);220 interrupts_restore(ipl);221 #endif222 223 199 while (ns16550_lsr_read(&ns16550) & LSR_DATA_READY) { 224 200 uint8_t x;
Note:
See TracChangeset
for help on using the changeset viewer.