diff options
author | 2012-04-05 21:51:55 +0000 | |
---|---|---|
committer | 2012-04-05 21:51:55 +0000 | |
commit | 740a81cc50ce4e797a1f1dface51d065fa8b9aa2 (patch) | |
tree | 6813d7dd561df351b533994800ae5fc9cc1dd446 | |
parent | Bail out of bus_dmamap_sync() earlier in the non-PREWRITE cases on TGT_COHERENT (diff) | |
download | wireguard-openbsd-740a81cc50ce4e797a1f1dface51d065fa8b9aa2.tar.xz wireguard-openbsd-740a81cc50ce4e797a1f1dface51d065fa8b9aa2.zip |
In the neverending tradition of never making things simple, SGI used 1940 as
the timebase on Indigo 2, but 1970 on Indy (verified with the `date' command
at the PROM prompt and checking what values ended up in the DS1286).
Indy will no longer be 30 years in the future from an IRIX point of view.
-rw-r--r-- | sys/arch/sgi/hpc/dsclock.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/sgi/hpc/dsclock.c b/sys/arch/sgi/hpc/dsclock.c index 396d68ec9d9..f1c2d05c20f 100644 --- a/sys/arch/sgi/hpc/dsclock.c +++ b/sys/arch/sgi/hpc/dsclock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dsclock.c,v 1.1 2012/03/28 20:44:23 miod Exp $ */ +/* $OpenBSD: dsclock.c,v 1.2 2012/04/05 21:51:55 miod Exp $ */ /* $NetBSD: dsclock.c,v 1.5 2011/07/01 18:53:46 dyoung Exp $ */ /* @@ -48,8 +48,10 @@ #include <dev/ic/ds1286reg.h> #include <sgi/hpc/hpcvar.h> +#include <sgi/sgi/ip22.h> -#define IRIX_BASE_YEAR 1940 +#define IRIX_BASE_YEAR \ + (sys_config.system_subtype == IP22_INDY ? POSIX_BASE_YEAR : 1940) struct dsclock_softc { struct device sc_dev; |