Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc/dev Add volatile to make rtc_{g|s}ettime matc...
details: https://anonhg.NetBSD.org/src/rev/e853395c3ead
branches: trunk
changeset: 581803:e853395c3ead
user: jdc <jdc%NetBSD.org@localhost>
date: Sun Jun 05 21:31:30 2005 +0000
description:
Add volatile to make rtc_{g|s}ettime match todr_chip_handle_t.
diffstat:
sys/arch/sparc/dev/rtc.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (47 lines):
diff -r 9de23549d6da -r e853395c3ead sys/arch/sparc/dev/rtc.c
--- a/sys/arch/sparc/dev/rtc.c Sun Jun 05 21:22:20 2005 +0000
+++ b/sys/arch/sparc/dev/rtc.c Sun Jun 05 21:31:30 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rtc.c,v 1.10 2003/07/15 00:04:56 lukem Exp $ */
+/* $NetBSD: rtc.c,v 1.11 2005/06/05 21:31:30 jdc Exp $ */
/*
* Copyright (c) 2001 Valeriy E. Ushakov
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rtc.c,v 1.10 2003/07/15 00:04:56 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rtc.c,v 1.11 2005/06/05 21:31:30 jdc Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@@ -71,8 +71,8 @@
extern todr_chip_handle_t todr_handle;
/* todr(9) methods */
-int rtc_gettime(todr_chip_handle_t, struct timeval *);
-int rtc_settime(todr_chip_handle_t, struct timeval *);
+int rtc_gettime(todr_chip_handle_t, volatile struct timeval *);
+int rtc_settime(todr_chip_handle_t, volatile struct timeval *);
int rtc_getcal(todr_chip_handle_t, int *);
int rtc_setcal(todr_chip_handle_t, int);
@@ -172,7 +172,7 @@
int
rtc_gettime(handle, tv)
todr_chip_handle_t handle;
- struct timeval *tv;
+ volatile struct timeval *tv;
{
struct rtc_ebus_softc *sc = handle->cookie;
struct clock_ymdhms dt;
@@ -221,7 +221,7 @@
int
rtc_settime(handle, tv)
todr_chip_handle_t handle;
- struct timeval *tv;
+ volatile struct timeval *tv;
{
struct rtc_ebus_softc *sc = handle->cookie;
struct clock_ymdhms dt;
Home |
Main Index |
Thread Index |
Old Index