Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-4]: src/sys/arch/amiga/dev Pull up revision 1.6 (requested by is):



details:   https://anonhg.NetBSD.org/src/rev/f36708d2bcee
branches:  netbsd-1-4
changeset: 469990:f36708d2bcee
user:      he <he%NetBSD.org@localhost>
date:      Sat Jan 08 18:19:41 2000 +0000

description:
Pull up revision 1.6 (requested by is):
  Write the Ricoh RP5C01 leapyear bits when writing the year.

diffstat:

 sys/arch/amiga/dev/a34kbbc.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r d37f53acb61b -r f36708d2bcee sys/arch/amiga/dev/a34kbbc.c
--- a/sys/arch/amiga/dev/a34kbbc.c      Sat Jan 08 18:16:54 2000 +0000
+++ b/sys/arch/amiga/dev/a34kbbc.c      Sat Jan 08 18:19:41 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: a34kbbc.c,v 1.3.2.1 2000/01/08 18:16:54 he Exp $       */
+/*     $NetBSD: a34kbbc.c,v 1.3.2.2 2000/01/08 18:19:41 he Exp $       */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -130,7 +130,6 @@
        /* let it run again.. */
        rt->control1 = A3CONTROL1_FREE_CLOCK;
 
-       printf("year read: %d.\n", dt.dt_year);
        if (dt.dt_year < STARTOFTIME)
                dt.dt_year += 100;
 
@@ -182,7 +181,9 @@
        rt->month2  = dt.dt_mon % 10;
        rt->year1   = (dt.dt_year / 10) % 10;
        rt->year2   = dt.dt_year % 10;
-       rt->control1 = A3CONTROL1_FREE_CLOCK;
+       rt->control1 = A3CONTROL1_HOLD_CLOCK | 1;       /* mode 1 registers */
+       rt->leapyear = dt.dt_year;              /* XXX implicit % 4 */
+       rt->control1 = A3CONTROL1_FREE_CLOCK;           /* implies mode 0 */
 
        return (1);
 }



Home | Main Index | Thread Index | Old Index