From 72743f1d1f19979fcd9c35a0baf3e287091e8eef Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sat, 24 May 2008 23:04:09 -0400 Subject: Minor cleanup - use usecs instead of msecs. set_usertimer() takes microseconds, not milliseconds. --- src/clock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/clock.c b/src/clock.c index 8d908a7..037d422 100644 --- a/src/clock.c +++ b/src/clock.c @@ -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); -- cgit v1.1