summaryrefslogtreecommitdiff
path: root/src/kbd.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2009-10-24 11:06:08 -0400
committerKevin O'Connor <kevin@koconnor.net>2009-10-24 11:06:08 -0400
commit10ad799ff49508127e75f57c3927603441232ae3 (patch)
treea581669e7c2210c247f253c849e9a530fc38f719 /src/kbd.c
parent89eb6241e51bc825cfbc1292802a960dcb48d778 (diff)
downloadqemu-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.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/kbd.c b/src/kbd.c
index 6b14940..29eb29a 100644
--- a/src/kbd.c
+++ b/src/kbd.c
@@ -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;