summaryrefslogtreecommitdiff
path: root/sys/arch/loongson
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2010-01-22 21:44:01 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2010-01-22 21:44:01 +0000
commit0a04a3641864197a6cc4f59db098ac2d541b6b9e (patch)
tree63530157b7da32cc7d28e2ed0906e698c80d431f /sys/arch/loongson
parentc27c14d614f6e76e77cb2b883c20add2dd349098 (diff)
Fix previous to pick the right year as the timebase (mips64 routines expect
the year to be relative to 1900, not zero).
Diffstat (limited to 'sys/arch/loongson')
-rw-r--r--sys/arch/loongson/dev/mcclock.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/loongson/dev/mcclock.c b/sys/arch/loongson/dev/mcclock.c
index cbaaf5279da..ef03151a186 100644
--- a/sys/arch/loongson/dev/mcclock.c
+++ b/sys/arch/loongson/dev/mcclock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mcclock.c,v 1.2 2010/01/21 17:49:23 miod Exp $ */
+/* $OpenBSD: mcclock.c,v 1.3 2010/01/22 21:44:00 miod Exp $ */
/* $NetBSD: mcclock.c,v 1.4 1996/10/13 02:59:41 christos Exp $ */
/*
@@ -95,7 +95,7 @@ mcclock_get(dev, base, ct)
ct->dow = regs[MC_DOW];
ct->day = regs[MC_DOM];
ct->mon = regs[MC_MONTH];
- ct->year = regs[MC_YEAR] + 2000;
+ ct->year = regs[MC_YEAR] + 100;
}
/*
@@ -120,7 +120,7 @@ mcclock_set(dev, ct)
regs[MC_DOW] = ct->dow;
regs[MC_DOM] = ct->day;
regs[MC_MONTH] = ct->mon;
- regs[MC_YEAR] = ct->year - 2000;
+ regs[MC_YEAR] = ct->year - 100;
s = splclock();
MC146818_PUTTOD(sc, &regs);