From 785b4c9fd5f60915778705efc0e949631233bfc9 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Thu, 5 Apr 2012 21:51:56 +0000 Subject: 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. --- sys/arch/sgi/hpc/dsclock.c | 6 ++++-- 1 file 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 #include +#include -#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; -- cgit v1.2.3