diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2001-10-02 14:57:10 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2001-10-02 14:57:10 +0000 |
commit | 84410cfd03dbc69a9573839e2563633d46296b9c (patch) | |
tree | 822fca210d1205e68aadde3883be6924c272b714 /sys | |
parent | 1f945f699c49af4db1bb76afbc71c351a0ac48ec (diff) |
fix rtc_write_reg; netbsd.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/sparc64/sparc64/clock.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/sparc64/sparc64/clock.c b/sys/arch/sparc64/sparc64/clock.c index 44508ea7640..8bc449cb57b 100644 --- a/sys/arch/sparc64/sparc64/clock.c +++ b/sys/arch/sparc64/sparc64/clock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: clock.c,v 1.2 2001/08/20 20:23:53 jason Exp $ */ +/* $OpenBSD: clock.c,v 1.3 2001/10/02 14:57:09 jason Exp $ */ /* $NetBSD: clock.c,v 1.41 2001/07/24 19:29:25 eeh Exp $ */ /* @@ -462,9 +462,10 @@ rtc_read_reg(bus_space_tag_t bt, bus_space_handle_t bh, int reg) 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 */ |