Add volatile to make rtc_{g|s}ettime match todr_chip_handle_t.

This commit is contained in:
jdc 2005-06-05 21:31:30 +00:00
parent a406dfbd14
commit b8c3b4e026
1 changed files with 6 additions and 6 deletions

View File

@ -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 @@ CFATTACH_DECL(rtc_ebus, sizeof(struct rtc_ebus_softc),
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 @@ rtcattach_ebus(parent, self, aux)
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 @@ rtc_gettime(handle, tv)
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;