From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <9a1de2032c18886da1f29133d46454e1.axp-list@archive.invalid> X-Archive-Original-Message-ID: Date: 13 Aug 1996 08:41:42 +0200 From: Martin Ostermann Subject: Re: Fun with the RTC (no, NOT the Religious Tech. Center) Miquel van Smoorenburg writes: > I've re-written clock(1) to use /dev/rtc instead of inline assembly > (which only works on the i386 ofcourse). Now this works fine on the > i386, but on my Jensen it lets the machine hang. Actually, there is a version, which uses libc's i/o functions. You can find a working binary on my web page. > Even a simple "clock -r" locks the console. Console swithing is still > possible, numlock works and even telnetting into the machine works. > You just can't type anything on the console.. > > About 5 mins. later the whole machine locks up. > > Any ideas? > > This is on a Jensen (DEC PC/axp 150) The Jensen has its RTC located at a different place than all other Alphas and the Intels. Its starts on port address 0x170, instead of 0x70. This caused to lock the clock program for a while, because it waited for the RTC to turn some flag in an (almost) infinite loop. If you do something like that in kernel code (/dev/rtc), this could lock your whole machine, I suppose. Maybe /dev/rtc wasn't ported in a clean way. You could use the RTC_PORT define, located in . BTW, I thought /dev/rtc was just a timing device, not an absolute time base? Thus I didn't bother to use it... Bye, Martin -- Martin Ostermann | mailto:ost@comnets.rwth-aachen.de Communication Networks | http://www.comnets.rwth-aachen.de/~ost Aachen University of Technology | phoneto:++49/241/807917 Germany | faxto:++49/241/8890378 -- To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null