diff options
author | 2002-05-14 20:41:33 +0000 | |
---|---|---|
committer | 2002-05-14 20:41:33 +0000 | |
commit | bd06d1e2be5c9b79d08a504d3ead3ea9561907da (patch) | |
tree | 61a3f11cdf98729b43a94f5072a0286485cc4f45 | |
parent | know powerpc core files (diff) | |
download | wireguard-openbsd-bd06d1e2be5c9b79d08a504d3ead3ea9561907da.tar.xz wireguard-openbsd-bd06d1e2be5c9b79d08a504d3ead3ea9561907da.zip |
make resettodr() save the clock (per the pdc manual), tested
-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 |