From 3a0c86d5538ae4783564fe141bb644873fd1a474 Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Tue, 14 May 2002 20:41:34 +0000 Subject: make resettodr() save the clock (per the pdc manual), tested --- sys/arch/hppa/dev/clock.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'sys/arch/hppa') diff --git a/sys/arch/hppa/dev/clock.c b/sys/arch/hppa/dev/clock.c index 267c8acf97c..735fff9d9ca 100644 --- a/sys/arch/hppa/dev/clock.c +++ b/sys/arch/hppa/dev/clock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: clock.c,v 1.13 2002/03/14 01:26:31 millert Exp $ */ +/* $OpenBSD: clock.c,v 1.14 2002/05/14 20:41:33 mickey Exp $ */ /* * Copyright (c) 1998,1999 Michael Shalayeff @@ -132,12 +132,8 @@ inittodr(t) void resettodr() { - struct pdc_tod tod PDC_ALIGNMENT; - - tod.sec = time.tv_sec; - tod.usec = time.tv_usec; - - pdc_call((iodcio_t)PAGE0->mem_pdc, 1, PDC_TOD, PDC_TOD_WRITE, &tod); + pdc_call((iodcio_t)PAGE0->mem_pdc, 1, PDC_TOD, PDC_TOD_WRITE, + time.tv_sec, time.tv_usec); } void -- cgit v1.2.3