diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2012-04-05 21:51:56 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2012-04-05 21:51:56 +0000 |
commit | 785b4c9fd5f60915778705efc0e949631233bfc9 (patch) | |
tree | 1a5a5c40d3994fefc575b7577f293e385b909b25 /sys | |
parent | 70771615ae6048972535a11cc48c6ee291f34c4c (diff) |
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.
Diffstat (limited to 'sys')
-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; |