Module Name:    src
Committed By:   tsutsui
Date:           Sat Jan 26 15:44:15 UTC 2013

Modified Files:
        src/sys/arch/luna68k/dev: timekeeper.c

Log Message:
Fix offset of DS1287A NVRAM address on LUNA-II.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/luna68k/dev/timekeeper.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/luna68k/dev/timekeeper.c
diff -u src/sys/arch/luna68k/dev/timekeeper.c:1.11 src/sys/arch/luna68k/dev/timekeeper.c:1.12
--- src/sys/arch/luna68k/dev/timekeeper.c:1.11	Tue Jan 22 15:44:25 2013
+++ src/sys/arch/luna68k/dev/timekeeper.c	Sat Jan 26 15:44:14 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: timekeeper.c,v 1.11 2013/01/22 15:44:25 tsutsui Exp $ */
+/* $NetBSD: timekeeper.c,v 1.12 2013/01/26 15:44:14 tsutsui Exp $ */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>			/* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: timekeeper.c,v 1.11 2013/01/22 15:44:25 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: timekeeper.c,v 1.12 2013/01/26 15:44:14 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -98,7 +98,7 @@ clock_attach(device_t parent, device_t s
 		break;
 	case LUNA_II: /* Dallas DS1287A */
 		sc->sc_clock = (void *)ma->ma_addr;
-		sc->sc_nvram = (void *)(ma->ma_addr + 50);
+		sc->sc_nvram = (void *)(ma->ma_addr + MC_NREGS);
 		sc->sc_nvramsize = 50;
 		sc->sc_todr.todr_gettime_ymdhms = dsclock_get;
 		sc->sc_todr.todr_settime_ymdhms = dsclock_set;

Reply via email to