summaryrefslogtreecommitdiff
path: root/xen
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2020-03-09 22:01:33 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-03-09 22:01:33 +0100
commit970e7cd16afb136b256479e2ca0723d74e8bb6e1 (patch)
tree3ae63b7b56f911c0b8a1046b60b128b3dcead012 /xen
parent28b53508aa4cd06933fa1bcbbaa791ad12ecbf51 (diff)
Set readtodc parameter 64bitv1.8+git20200309
In order to fix year 2038 limit. * i386/i386at/rtc.h (readtodc): Make tp parameter uint64_t *. * i386/i386at/rtc.c (readtodc): Likewise. * xen/time.c (readtodc): Likewise. * i386/i386at/model_dep.c (inittodr): Pass uint64_t pointer to readtodc.
Diffstat (limited to 'xen')
-rw-r--r--xen/time.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/xen/time.c b/xen/time.c
index d483405a..f2707a82 100644
--- a/xen/time.c
+++ b/xen/time.c
@@ -110,14 +110,11 @@ static void hypclock_intr(int unit, int old_ipl, void *ret_addr, struct i386_int
#endif
}
-extern struct timeval time;
-
int
-readtodc(tp)
- u_int *tp;
+readtodc(uint64_t *tp)
{
uint64_t t = hyp_get_time();
- u_int n = t / 1000000000;
+ uint64_t n = t / 1000000000;
*tp = n;