diff options
Diffstat (limited to 'sys/arch/loongson')
-rw-r--r-- | sys/arch/loongson/dev/mcclock.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/loongson/dev/mcclock.c b/sys/arch/loongson/dev/mcclock.c index b0b9b3e4bd8..cbaaf5279da 100644 --- a/sys/arch/loongson/dev/mcclock.c +++ b/sys/arch/loongson/dev/mcclock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mcclock.c,v 1.1 2009/12/25 21:04:30 miod Exp $ */ +/* $OpenBSD: mcclock.c,v 1.2 2010/01/21 17:49:23 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]; + ct->year = regs[MC_YEAR] + 2000; } /* @@ -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; + regs[MC_YEAR] = ct->year - 2000; s = splclock(); MC146818_PUTTOD(sc, ®s); |