summaryrefslogtreecommitdiffstats
path: root/sys/ia64/ia64
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2011-06-25 17:58:35 +0000
committermarcel <marcel@FreeBSD.org>2011-06-25 17:58:35 +0000
commit985a8017af3f68f5334fc6e5dd798b35f87d9846 (patch)
tree3e476d586eeda975d29f0b664a090a53bcde7a8f /sys/ia64/ia64
parenteec6fa48882cfb2fab4e8a04717d84d4727eb4ca (diff)
downloadFreeBSD-src-985a8017af3f68f5334fc6e5dd798b35f87d9846.zip
FreeBSD-src-985a8017af3f68f5334fc6e5dd798b35f87d9846.tar.gz
Oops. The sec field of struct bintime is *not* a 32-bit type.
It's time_t, which is 64 bits on ia64.
Diffstat (limited to 'sys/ia64/ia64')
-rw-r--r--sys/ia64/ia64/clock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ia64/ia64/clock.c b/sys/ia64/ia64/clock.c
index 74b2248..96d07c4 100644
--- a/sys/ia64/ia64/clock.c
+++ b/sys/ia64/ia64/clock.c
@@ -185,7 +185,7 @@ clock_configure(void *dummy)
et->et_frequency = itc_freq;
et->et_min_period.sec = 0;
et->et_min_period.frac = (0x8000000000000000ul / (u_long)(10*hz)) << 1;
- et->et_max_period.sec = ~0ul; /* XXX unless itc_freq >= (1<<32) */
+ et->et_max_period.sec = 0xffffffff;
et->et_max_period.frac = ((0xfffffffeul << 32) / itc_freq) << 32;
et->et_start = ia64_clock_start;
et->et_stop = ia64_clock_stop;
OpenPOWER on IntegriCloud