diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2013-07-20 17:06:51 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2013-07-21 14:09:21 -0400 |
commit | 23c14a16392922f0706b97f38f61c5d2e55af81a (patch) | |
tree | 00b8706493c453f1970a73c14232214b1ba5b9ae /src/util.h | |
parent | 0edf1d6bcc8026bca8f1fb5ebf8bcfd3795be151 (diff) | |
download | seabios-23c14a16392922f0706b97f38f61c5d2e55af81a.tar.gz |
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.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |