aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2008-05-24 23:04:09 -0400
committerKevin O'Connor <kevin@koconnor.net>2008-05-24 23:04:09 -0400
commit72743f1d1f19979fcd9c35a0baf3e287091e8eef (patch)
tree6ac60f972868c1b5e38665df8eb38099d97fd97e
parent5be049093df6206cd8fd3017731abcfd40084da5 (diff)
downloadseabios-hppa-72743f1d1f19979fcd9c35a0baf3e287091e8eef.zip
seabios-hppa-72743f1d1f19979fcd9c35a0baf3e287091e8eef.tar.gz
seabios-hppa-72743f1d1f19979fcd9c35a0baf3e287091e8eef.tar.bz2
Minor cleanup - use usecs instead of msecs.
set_usertimer() takes microseconds, not milliseconds.
-rw-r--r--src/clock.c4
1 files changed, 2 insertions, 2 deletions
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);