On Mon, Sep 25, 2000 at 11:35:35AM +0200, Maciej W. Rozycki wrote:
> On Fri, 22 Sep 2000, Jan-Benedict Glaw wrote:
> 
> > Instead of having hard-coded values, we should maybe do something
> > more variable like:
> >  if (year >= (20 + YEARS_SINCE_2000) && year < (48 + YEARS_SINCE_2000)
> >     ...
> 
>  This looks reasonable.
> 
> > This applies to other platforms using different epoch vaules as
> > well, of course...
> 
>  Alpha appears to be the only one.

./driver/char/rtc.c:rtc_init()
#if defined(__alpha__) || defined(__mips__)
[...]

MIPS does that as well _in the wrong way_ compared to rtc.c:
./arch/mips/dev/time.c:time_init()
    /*
     * The DECstation RTC is used as a TOY (Time Of Year).
     * The PROM will reset the year to either '70, '71 or '72.
     * This hack will only work until Dec 31 2001.
     */
    year += 1928;

MfG, JBG



-- 
Fehler eingestehen, Größe zeigen: Nehmt die Rechtschreibreform zurück!!!
/* Jan-Benedict Glaw <[EMAIL PROTECTED]> -- +49-177-5601720 */
keyID=0x8399E1BB fingerprint=250D 3BCF 7127 0D8C A444 A961 1DBD 5E75 8399 E1BB
     "insmod vi.o and there we go..." (Alexander Viro on linux-kernel)

PGP signature

Reply via email to