Port rombios32 code from bochs-bios.
[people/mcb30/legacybios.git] / src / system.c
index f4b13f8..70f9bcd 100644 (file)
@@ -84,18 +84,6 @@ handle_1552(struct bregs *regs)
     handle_ret(regs, 0);
 }
 
-// Sleep for n microseconds. currently using the
-// refresh request port 0x61 bit4, toggling every 15usec
-static void
-usleep(u32 count)
-{
-    count = count / 15;
-    u8 kbd = inb(PORT_PS2_CTRLB);
-    while (count)
-        if ((inb(PORT_PS2_CTRLB) ^ kbd) & KBD_REFRESH)
-            count--;
-}
-
 // Wait for CX:DX microseconds. currently using the
 // refresh request port 0x61 bit4, toggling every 15usec
 static void