summaryrefslogtreecommitdiff
path: root/i386/i386at/model_dep.c
diff options
context:
space:
mode:
Diffstat (limited to 'i386/i386at/model_dep.c')
-rw-r--r--i386/i386at/model_dep.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/i386/i386at/model_dep.c b/i386/i386at/model_dep.c
index 04660a6d..61ed4748 100644
--- a/i386/i386at/model_dep.c
+++ b/i386/i386at/model_dep.c
@@ -669,12 +669,12 @@ void
inittodr(void)
{
time_value_t new_time;
+ uint64_t newsecs;
- new_time.seconds = 0;
+ (void) readtodc(&newsecs);
+ new_time.seconds = newsecs;
new_time.microseconds = 0;
- (void) readtodc((u_int *)&new_time.seconds);
-
{
spl_t s = splhigh();
time = new_time;