diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-05-14 20:41:34 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-05-14 20:41:34 +0000 |
commit | 3a0c86d5538ae4783564fe141bb644873fd1a474 (patch) | |
tree | 2cd922b484d1d7cd09bdb43e4604dcb082651188 /sys/arch/hppa | |
parent | 34ed082870661cb05036dedcabfc254083e3603c (diff) |
make resettodr() save the clock (per the pdc manual), tested
Diffstat (limited to 'sys/arch/hppa')
-rw-r--r-- | sys/arch/hppa/dev/clock.c | 10 |
1 files changed, 3 insertions, 7 deletions
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 |