Changeset 3dea17f in mainline
- 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
- Location:
- kernel
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia64/src/ski/ski.c
r80ca47e r3dea17f 242 242 void ski_kbd_grab(void) 243 243 { 244 ipl_t ipl = interrupts_disable(); 245 spinlock_lock(&ski_kbd_irq.lock); 244 246 ski_kbd_irq.notif_cfg.notify = false; 247 spinlock_unlock(&ski_kbd_irq.lock); 248 interrupts_restore(ipl); 245 249 } 246 250 247 251 void ski_kbd_release(void) 248 252 { 253 ipl_t ipl = interrupts_disable(); 254 spinlock_lock(&ski_kbd_irq.lock); 249 255 if (ski_kbd_irq.notif_cfg.answerbox) 250 256 ski_kbd_irq.notif_cfg.notify = true; 257 spinlock_unlock(&ski_kbd_irq.lock); 258 interrupts_restore(ipl); 251 259 } 252 260 -
kernel/arch/mips32/src/drivers/msim.c
r80ca47e r3dea17f 121 121 void msim_kbd_grab(void) 122 122 { 123 ipl_t ipl = interrupts_disable(); 124 spinlock_lock(&msim_irq.lock); 123 125 msim_irq.notif_cfg.notify = false; 126 spinlock_unlock(&msim_irq.lock); 127 interrupts_restore(ipl); 124 128 } 125 129 126 130 void msim_kbd_release(void) 127 131 { 132 ipl_t ipl = interrupts_disable(); 133 spinlock_lock(&msim_irq.lock); 128 134 if (msim_irq.notif_cfg.answerbox) 129 135 msim_irq.notif_cfg.notify = true; 136 spinlock_unlock(&msim_irq.lock); 137 interrupts_restore(ipl); 130 138 } 131 139 -
kernel/arch/ppc32/src/drivers/cuda.c
r80ca47e r3dea17f 274 274 void cuda_grab(void) 275 275 { 276 ipl_t ipl = interrupts_disable(); 277 spinlock_lock(&cuda_irq.lock); 276 278 cuda_irq.notif_cfg.notify = false; 279 spinlock_unlock(&cuda_irq.lock); 280 interrupts_restore(ipl); 277 281 } 278 282 … … 281 285 void cuda_release(void) 282 286 { 287 ipl_t ipl = interrupts_disable(); 288 spinlock_lock(&cuda_irq.lock); 283 289 if (cuda_irq.notif_cfg.answerbox) 284 290 cuda_irq.notif_cfg.notify = true; 291 spinlock_unlock(&cuda_irq.unlock); 292 interrupts_restore(ipl); 285 293 } 286 294 -
kernel/arch/ppc32/src/drivers/pic.c
r80ca47e r3dea17f 46 46 } 47 47 48 49 50 48 void pic_enable_interrupt(int intnum) 51 49 { -
kernel/genarch/src/kbd/ns16550.c
r80ca47e r3dea17f 81 81 void ns16550_grab(void) 82 82 { 83 ipl_t ipl = interrupts_disable(); 84 83 85 ns16550_ier_write(&ns16550, IER_ERBFI); /* enable receiver interrupt */ 84 86 … … 86 88 (void) ns16550_rbr_read(&ns16550); 87 89 90 spinlock_lock(&ns16550_irq.lock); 88 91 ns16550_irq.notif_cfg.notify = false; 92 spinlock_unlock(&ns16550_irq.lock); 93 interrupts_restore(ipl); 89 94 } 90 95 … … 92 97 void ns16550_release(void) 93 98 { 99 ipl_t ipl = interrupts_disable(); 100 spinlock_lock(&ns16550_irq.lock); 94 101 if (ns16550_irq.notif_cfg.answerbox) 95 102 ns16550_irq.notif_cfg.notify = true; 103 spinlock_unlock(&ns16550_irq.lock); 104 interrupts_restore(ipl); 96 105 } 97 106 -
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.