From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <58415742dc894819b8af3cce4c095013.axp-list@archive.invalid> X-Archive-Original-Message-ID: <9605081357.AA22936@brillig.amt.tay1.dec.com> Date: Wed, 8 May 1996 17:41:44 +0300 (EET DST) From: Linus Torvalds Subject: Re: /dev/rtc on Jensen? In-Reply-To: <199605080930.LAA09051@vespa.unix-ag.uni-siegen.de> On Wed, 8 May 1996, Nils Faerber wrote: > > Hi folks! > Yesterday night I tested the new RTC device on my Jensen and crashed the > system's clock completely so that I had to hard-reset (power cycle) the > machine. > So my question is: Is /dev/rtc supposed to work on Jensen? I guess we can say "supposed to", but not too surprising that it doesn't work quite right. The Jensen RTC is kind of strange - it's the same as a normal PC, except it's at the wrong address! (The whole Jensen IO subsystem is rather strange - DEC was just learning how to do it, and it looks like they also had some other strangeness going on with the Jensen) You would probably get it to work by changing RTC_IO_BASE in rtc.c from 0x70 to 0x170 for the Jensen, but in fact you might be better off using the "RTC_PORT()" define (change the RTC_IO_BASE define to be #define RTC_IO_BASE RTC_PORT(0) and everything wshould be ok even on non_jensen setups - this is that the kernel time init stuff uses. Paul, you might take note of this (your comments at the RTC_IO_BASE thing say something along "can't see this changing soon", but you didn't take into account the strange and wonderful things when non-x86 people start playing with the ISA bus..) Linus