From: Martin Ostermann <ost@comnets.rwth-aachen.de>
Subject: Re: Fun with the RTC (no, NOT the Religious Tech. Center)
Date: 13 Aug 1996 08:41:42 +0200 [thread overview]
Message-ID: <9a1de2032c18886da1f29133d46454e1.axp-list@archive.invalid> (raw)
Miquel van Smoorenburg <miquels@cistron.nl> 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 <asm/jensen.h>.
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
next reply other threads:[~1996-08-13 6:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-08-13 6:41 Martin Ostermann [this message]
-- strict thread matches above, loose matches on Subject: below --
1996-08-12 19:25 Fun with the RTC (no, NOT the Religious Tech. Center) Miquel van Smoorenburg
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox