Rev 1942 | Rev 1945 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1942 | Rev 1944 | ||
---|---|---|---|
Line 239... | Line 239... | ||
239 | sysinfo_set_item_val("kbd.devno", NULL, ski_kbd_devno); |
239 | sysinfo_set_item_val("kbd.devno", NULL, ski_kbd_devno); |
240 | } |
240 | } |
241 | 241 | ||
242 | void ski_kbd_grab(void) |
242 | void ski_kbd_grab(void) |
243 | { |
243 | { |
- | 244 | ipl_t ipl = interrupts_disable(); |
|
- | 245 | spinlock_lock(&ski_kbd_irq.lock); |
|
244 | ski_kbd_irq.notif_cfg.notify = false; |
246 | ski_kbd_irq.notif_cfg.notify = false; |
- | 247 | spinlock_unlock(&ski_kbd_irq.lock); |
|
- | 248 | interrupts_restore(ipl); |
|
245 | } |
249 | } |
246 | 250 | ||
247 | void ski_kbd_release(void) |
251 | void ski_kbd_release(void) |
248 | { |
252 | { |
- | 253 | ipl_t ipl = interrupts_disable(); |
|
- | 254 | spinlock_lock(&ski_kbd_irq.lock); |
|
249 | if (ski_kbd_irq.notif_cfg.answerbox) |
255 | if (ski_kbd_irq.notif_cfg.answerbox) |
250 | ski_kbd_irq.notif_cfg.notify = true; |
256 | ski_kbd_irq.notif_cfg.notify = true; |
- | 257 | spinlock_unlock(&ski_kbd_irq.lock); |
|
- | 258 | interrupts_restore(ipl); |
|
251 | } |
259 | } |
252 | 260 | ||
253 | /** @} |
261 | /** @} |
254 | */ |
262 | */ |