Make timeval argument to todr_settime volatile to keep non-timecounter
ports happy.
This commit is contained in:
parent
076748ce26
commit
d9aa7ac028
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: clock_subr.h,v 1.16 2006/09/07 00:10:49 gdamore Exp $ */
|
||||
/* $NetBSD: clock_subr.h,v 1.17 2006/09/07 01:50:49 uwe Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996 The NetBSD Foundation, Inc.
|
||||
|
@ -102,7 +102,7 @@ typedef struct todr_chip_handle *todr_chip_handle_t;
|
|||
* 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_settime(todr_chip_handle_t tch, struct timeval *);
|
||||
extern int todr_settime(todr_chip_handle_t tch, volatile struct timeval *);
|
||||
|
||||
/*
|
||||
* Machine-dependent function that machine-independent RTC drivers can
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: kern_todr.c,v 1.7 2006/09/07 01:43:52 uwe Exp $ */
|
||||
/* $NetBSD: kern_todr.c,v 1.8 2006/09/07 01:50:49 uwe Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
|
@ -76,7 +76,7 @@
|
|||
* @(#)clock.c 8.1 (Berkeley) 6/10/93
|
||||
*/
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: kern_todr.c,v 1.7 2006/09/07 01:43:52 uwe Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: kern_todr.c,v 1.8 2006/09/07 01:50:49 uwe Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
|
||||
|
@ -281,7 +281,7 @@ todr_gettime(todr_chip_handle_t tch, struct timeval *tvp)
|
|||
}
|
||||
|
||||
int
|
||||
todr_settime(todr_chip_handle_t tch, struct timeval *tvp)
|
||||
todr_settime(todr_chip_handle_t tch, volatile struct timeval *tvp)
|
||||
{
|
||||
struct clock_ymdhms dt;
|
||||
|
||||
|
|
Loading…
Reference in New Issue