diff --git a/sys/arch/amiga/dev/a2kbbc.c b/sys/arch/amiga/dev/a2kbbc.c index 6374eb212264..754b0750e356 100644 --- a/sys/arch/amiga/dev/a2kbbc.c +++ b/sys/arch/amiga/dev/a2kbbc.c @@ -1,4 +1,4 @@ -/* $NetBSD: a2kbbc.c,v 1.7 1999/03/28 21:39:59 is Exp $ */ +/* $NetBSD: a2kbbc.c,v 1.8 2000/01/02 18:29:22 is Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -169,11 +169,13 @@ a2kugettod(tvp) rt->control1 &= ~A2CONTROL1_HOLD; dt.dt_year += CLOCK_BASE_YEAR; + if (dt.dt_year < STARTOFTIME) + dt.dt_year += 100; if ((dt.dt_hour > 23) || (dt.dt_day > 31) || (dt.dt_mon > 12) || - (dt.dt_year < STARTOFTIME) || (dt.dt_year > 2036)) + /* (dt.dt_year < STARTOFTIME) || */ (dt.dt_year > 2036)) return (0); secs = clock_ymdhms_to_secs(&dt); diff --git a/sys/arch/amiga/dev/a34kbbc.c b/sys/arch/amiga/dev/a34kbbc.c index f0ec0fff9312..cfceaf9b3f52 100644 --- a/sys/arch/amiga/dev/a34kbbc.c +++ b/sys/arch/amiga/dev/a34kbbc.c @@ -1,4 +1,4 @@ -/* $NetBSD: a34kbbc.c,v 1.3 1999/03/14 22:42:12 is Exp $ */ +/* $NetBSD: a34kbbc.c,v 1.4 2000/01/02 18:29:23 is Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -127,6 +127,8 @@ a34kugettod(tvp) dt.dt_year = rt->year1 * 10 + rt->year2; dt.dt_year += CLOCK_BASE_YEAR; + if (dt.dt_year < STARTOFTIME) + dt.dt_year += 100; /* let it run again.. */ rt->control1 = A3CONTROL1_FREE_CLOCK; @@ -135,7 +137,7 @@ a34kugettod(tvp) (dt.dt_wday > 6) || (dt.dt_day > 31) || (dt.dt_mon > 12) || - (dt.dt_year < STARTOFTIME) || (dt.dt_year > 2036)) + /* (dt.dt_year < STARTOFTIME) || */ (dt.dt_year > 2036)) return (0); secs = clock_ymdhms_to_secs(&dt);