summaryrefslogtreecommitdiff
path: root/xen/time.c
diff options
context:
space:
mode:
Diffstat (limited to 'xen/time.c')
-rw-r--r--xen/time.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/xen/time.c b/xen/time.c
index d483405a..e8abd56b 100644
--- a/xen/time.c
+++ b/xen/time.c
@@ -25,6 +25,7 @@
#include <machine/ipl.h>
#include <mach/machine/eflags.h>
#include <xen/evt.h>
+#include "xen.h"
#include "time.h"
#include "store.h"
@@ -110,14 +111,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;