diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2009-10-24 11:06:08 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2009-10-24 11:06:08 -0400 |
commit | 10ad799ff49508127e75f57c3927603441232ae3 (patch) | |
tree | a581669e7c2210c247f253c849e9a530fc38f719 /src/kbd.c | |
parent | 89eb6241e51bc825cfbc1292802a960dcb48d778 (diff) | |
download | qemu-seabios-10ad799ff49508127e75f57c3927603441232ae3.tar.gz |
Replace irq_enable() regions with explicit calls to check for irqs.
Add new function yield() which will permit irqs to trigger.
The yield() call enables irqs to occur in 32bit mode.
Add [num]sleep calls that yield instead of just spinning.
Rename existing int 1586 usleep call to biosusleep.
Convert many calls to mdelay to msleep.
Diffstat (limited to 'src/kbd.c')
-rw-r--r-- | src/kbd.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -234,9 +234,7 @@ static void handle_160a(struct bregs *regs) { u8 param[2]; - irq_enable(); int ret = kbd_command(ATKBD_CMD_GETID, param); - irq_disable(); if (ret) { regs->bx = 0; return; @@ -306,9 +304,7 @@ set_leds() if (shift_flags == led_flags) return; - irq_enable(); int ret = kbd_command(ATKBD_CMD_SETLEDS, &shift_flags); - irq_disable(); if (ret) // Error return; |