Minor cleanup - use usecs instead of msecs.
authorKevin O'Connor <kevin@koconnor.net>
Sun, 25 May 2008 03:04:09 +0000 (23:04 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Sun, 25 May 2008 03:04:09 +0000 (23:04 -0400)
set_usertimer() takes microseconds, not milliseconds.

src/clock.c

index 8d908a780f130196757d5ff40760a933e298c4df..037d42215624fa3dcef5af35ad03ca55ee2d4e40 100644 (file)
@@ -333,7 +333,7 @@ handle_08()
  ****************************************************************/
 
 static int
-set_usertimer(u32 msecs, u16 seg, u16 offset)
+set_usertimer(u32 usecs, u16 seg, u16 offset)
 {
     if (GET_BDA(rtc_wait_flag) & RWS_WAIT_PENDING)
         return -1;
@@ -341,7 +341,7 @@ set_usertimer(u32 msecs, u16 seg, u16 offset)
     // Interval not already set.
     SET_BDA(rtc_wait_flag, RWS_WAIT_PENDING);  // Set status byte.
     SET_BDA(ptr_user_wait_complete_flag, (seg << 16) | offset);
-    SET_BDA(user_wait_timeout, msecs);
+    SET_BDA(user_wait_timeout, usecs);
 
     // Unmask IRQ8 so INT70 will get through.
     u8 irqDisable = inb(PORT_PIC2_DATA);