* Fun with the RTC (no, NOT the Religious Tech. Center)
@ 1996-08-12 19:25 Miquel van Smoorenburg
0 siblings, 0 replies; 2+ messages in thread
From: Miquel van Smoorenburg @ 1996-08-12 19:25 UTC (permalink / raw)
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.
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)
Mike.
--
Miquel van | Cistron Internet Services -- Alphen aan den Rijn.
Smoorenburg, | mailto:info@cistron.nl http://www.cistron.nl/
miquels@het.net | Tel: +31-172-419445 (Voice) 430979 (Fax) 442580 (Data)
--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Fun with the RTC (no, NOT the Religious Tech. Center)
@ 1996-08-13 6:41 Martin Ostermann
0 siblings, 0 replies; 2+ messages in thread
From: Martin Ostermann @ 1996-08-13 6:41 UTC (permalink / 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1996-08-13 6:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-08-13 6:41 Fun with the RTC (no, NOT the Religious Tech. Center) Martin Ostermann
-- strict thread matches above, loose matches on Subject: below --
1996-08-12 19:25 Miquel van Smoorenburg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox