Support sleeping until an irq fires, and use where applicable.
authorKevin O'Connor <kevin@koconnor.net>
Sun, 20 Sep 2009 19:33:08 +0000 (15:33 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Sun, 20 Sep 2009 19:33:08 +0000 (15:33 -0400)
commitee2efa7303077ce98a745f637e213ba9a0965811
tree421bea0de69c8fcc61122d96409218799efbfb0a
parent40f5b5aa1ecb189353e79009f49276193b3a87e9
Support sleeping until an irq fires, and use where applicable.

Add wait_irq() - it's more efficient than looping with cpu_relax().
Also, move kbd irq enables down - only kbd_command needs it.
Also, make some minor code layout improvements to kbd.c.
src/clock.c
src/floppy.c
src/kbd.c
src/util.h