dsrtc_settime already takes a volatile struct timeval *, also qualify
with volatile for dsrtc_gettime.
This commit is contained in:
parent
6d944d24c9
commit
843ed515f0
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: clock_subr.h,v 1.17 2006/09/07 01:50:49 uwe Exp $ */
|
/* $NetBSD: clock_subr.h,v 1.18 2006/09/10 14:06:54 gavan Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1996 The NetBSD Foundation, Inc.
|
* Copyright (c) 1996 The NetBSD Foundation, Inc.
|
||||||
|
@ -101,7 +101,7 @@ typedef struct todr_chip_handle *todr_chip_handle_t;
|
||||||
/*
|
/*
|
||||||
* Probably these should evolve into internal routines in kern_todr.c.
|
* Probably these should evolve into internal routines in kern_todr.c.
|
||||||
*/
|
*/
|
||||||
extern int todr_gettime(todr_chip_handle_t tch, struct timeval *);
|
extern int todr_gettime(todr_chip_handle_t tch, volatile struct timeval *);
|
||||||
extern int todr_settime(todr_chip_handle_t tch, volatile struct timeval *);
|
extern int todr_settime(todr_chip_handle_t tch, volatile struct timeval *);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: kern_todr.c,v 1.13 2006/09/10 07:06:48 tsutsui Exp $ */
|
/* $NetBSD: kern_todr.c,v 1.14 2006/09/10 14:06:54 gavan Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1992, 1993
|
* Copyright (c) 1992, 1993
|
||||||
|
@ -76,7 +76,7 @@
|
||||||
* @(#)clock.c 8.1 (Berkeley) 6/10/93
|
* @(#)clock.c 8.1 (Berkeley) 6/10/93
|
||||||
*/
|
*/
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: kern_todr.c,v 1.13 2006/09/10 07:06:48 tsutsui Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: kern_todr.c,v 1.14 2006/09/10 14:06:54 gavan Exp $");
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/kernel.h>
|
#include <sys/kernel.h>
|
||||||
|
@ -248,7 +248,7 @@ resettodr(void)
|
||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
todr_gettime(todr_chip_handle_t tch, struct timeval *tvp)
|
todr_gettime(todr_chip_handle_t tch, volatile struct timeval *tvp)
|
||||||
{
|
{
|
||||||
struct clock_ymdhms dt;
|
struct clock_ymdhms dt;
|
||||||
int rv;
|
int rv;
|
||||||
|
|
Loading…
Reference in New Issue