aboutsummaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2013-07-20 17:06:51 -0400
committerKevin O'Connor <kevin@koconnor.net>2013-07-21 14:09:21 -0400
commit23c14a16392922f0706b97f38f61c5d2e55af81a (patch)
tree00b8706493c453f1970a73c14232214b1ba5b9ae /src/util.h
parent0edf1d6bcc8026bca8f1fb5ebf8bcfd3795be151 (diff)
downloadseabios-hppa-23c14a16392922f0706b97f38f61c5d2e55af81a.zip
seabios-hppa-23c14a16392922f0706b97f38f61c5d2e55af81a.tar.gz
seabios-hppa-23c14a16392922f0706b97f38f61c5d2e55af81a.tar.bz2
Shift CPU TSC down to reduce need for 64bit variables.
The time-stamp-counter has a higher accuracy than is needed in SeaBIOS. Down shift it to ensure it safely fits in a 32bit variable. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util.h b/src/util.h
index a91b7f8..bc2fd00 100644
--- a/src/util.h
+++ b/src/util.h
@@ -285,7 +285,7 @@ void releaseRTC(void);
u32 ticks_to_ms(u32 ticks);
u32 ticks_from_ms(u32 ms);
void pmtimer_setup(u16 ioport);
-int check_tsc(u64 end);
+int check_tsc(u32 end);
void timer_setup(void);
void ndelay(u32 count);
void udelay(u32 count);
@@ -293,8 +293,8 @@ void mdelay(u32 count);
void nsleep(u32 count);
void usleep(u32 count);
void msleep(u32 count);
-u64 calc_future_tsc(u32 msecs);
-u64 calc_future_tsc_usec(u32 usecs);
+u32 calc_future_tsc(u32 msecs);
+u32 calc_future_tsc_usec(u32 usecs);
u32 calc_future_timer_ticks(u32 count);
u32 calc_future_timer(u32 msecs);
int check_timer(u32 end);