Changeset 3dea17f in mainline for kernel/genarch/src/kbd/z8530.c
- Timestamp:
- 2006-10-19T17:33:08Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f0450658
- Parents:
- 80ca47e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/src/kbd/z8530.c
r80ca47e r3dea17f 75 75 void z8530_grab(void) 76 76 { 77 ipl_t ipl = interrupts_disable(); 78 77 79 (void) z8530_read_a(&z8530, RR8); 78 80 … … 90 92 z8530_write_a(&z8530, WR9, WR9_MIE); /* Master Interrupt Enable. */ 91 93 94 spinlock_lock(&z8530_irq.lock); 92 95 z8530_irq.notif_cfg.notify = false; 96 spinlock_unlock(&z8530_irq.lock); 97 interrupts_restore(ipl); 93 98 } 94 99 … … 96 101 void z8530_release(void) 97 102 { 103 ipl_t ipl = interrupts_disable(); 104 spinlock_lock(&z8530_irq.lock); 98 105 if (z8530_irq.notif_cfg.answerbox) 99 106 z8530_irq.notif_cfg.notify = true; 107 spinlock_unlock(&z8530_irq.lock); 108 interrupts_restore(ipl); 100 109 } 101 110
Note:
See TracChangeset
for help on using the changeset viewer.