Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc64/sparc64 Fix rtc_write_reg().



details:   https://anonhg.NetBSD.org/src/rev/9eb19a2e312e
branches:  trunk
changeset: 515689:9eb19a2e312e
user:      eeh <eeh%NetBSD.org@localhost>
date:      Tue Oct 02 04:06:26 2001 +0000

description:
Fix rtc_write_reg().

diffstat:

 sys/arch/sparc64/sparc64/clock.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (22 lines):

diff -r 0c978cfb3251 -r 9eb19a2e312e sys/arch/sparc64/sparc64/clock.c
--- a/sys/arch/sparc64/sparc64/clock.c  Tue Oct 02 03:03:02 2001 +0000
+++ b/sys/arch/sparc64/sparc64/clock.c  Tue Oct 02 04:06:26 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: clock.c,v 1.42 2001/09/26 20:53:12 eeh Exp $ */
+/*     $NetBSD: clock.c,v 1.43 2001/10/02 04:06:26 eeh Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -451,9 +451,10 @@
        return (bus_space_read_1(bt, bh, RTC_DATA));
 }
 void 
-rtc_write_reg(bus_space_tag_t bt, bus_space_handle_t bh, int reg, u_int8_t val) {
+rtc_write_reg(bus_space_tag_t bt, bus_space_handle_t bh, int reg, u_int8_t val)
+{
        bus_space_write_1(bt, bh, RTC_ADDR, reg);
-       bus_space_write_1(bt, bh, RTC_DATA, reg);
+       bus_space_write_1(bt, bh, RTC_DATA, val);
 }
 
 /* ARGSUSED */



Home | Main Index | Thread Index | Old Index