Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: David  Mosberger <davidm@AZStarNet.COM>
Subject: Re: redhat-4.0: /sbin/clock for the Jensen (again)
Date: Tue, 8 Oct 1996 13:34:53 -0700 (MST)	[thread overview]
Message-ID: <6a33d9d4c46558a075ff22a454841a6b.axp-list@archive.invalid> (raw)

Martin> David Mosberger-Tang <davidm@AZStarNet.COM> writes:
 Martin> > >>>>> On 08 Oct 1996 10:44:14 +0200, Martin Ostermann <ost@comnets.rwth-aachen.de> said:

 Martin> Hmm, I'm afraid this is going to be the runnig gag of this
 Martin> list ...  The following patch is still missing in Colgate:
 
 David> I don't think that patch is correct.  While I don't have the cmos
 David> datasheet, somebody else (I believe it was Miquel) pointed out that
 David> the 0x70 value that your patch changes is simply a bitmask that is
 David> unrelated to the port address.  

 Martin> Yes, exactly! Please look at the patch again:

 Martin> -  cmos_write (10, (save_freq_select | clockport));
 Martin> +  cmos_write (10, (save_freq_select | 0x70));

Duh, I looked at your patch, went to my sources, saw that all is fine
and then concluded that your patch must be backwards.  Sorry about
that.  Hmmh, maybe my patch on azstarnet doesn't have this fix in.
I'll double check.

 David> Are you saying the existing clock doesn't work at all for the Jensen?

 Martin> Yes. I think I know what the problem is: (clock.c)

 Martin> #ifdef USE_DEV_PORT
 Martin> # include <asm/fcntl.h>
 Martin> #else
 Martin> # include <asm/io.h>
 Martin> #endif

 Martin> Because of <asm/io.h>, the kernel i/o functions get used instead of
 Martin> the ones in glibc. Thus it only works on the i/o-architecture it was
 Martin> compiled on (or similar ones). But even if I compile it on my Jensen,
 Martin> it doesn't work. I need USE_DEV_PORT. I am going to take a look at it.

I don't think that's true.  Even with <asm/io.h>, you should get the
library versions.  But it would be cleaner to include <sys/io.h> for
glibc.

 Martin> Miquel didn't mail his patches, so I don't know how it's
 Martin> working. I recall, he also had problems with interrupts. 
 Martin> IMHO, using a kernel device would probably be the best solution,
 Martin> indeed.

The axp-diffs have some patches to rtc.c that are supposed to fix this
problem.  But I haven't heard from Miquel in a while, so I'm not sure
whether it's all working.

 Martin> I see if I can clock working with glibc's i/o functions. Should be no
 Martin> problem. 

It should work, I agree.  If not, maybe there is a bug in the glibc
functions in which case a fix is definitively needed.

	--david

--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null

             reply	other threads:[~1996-10-08 20:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-10-08 20:34 David Mosberger [this message]
  -- strict thread matches above, loose matches on Subject: below --
1996-10-08 21:37 redhat-4.0: /sbin/clock for the Jensen (again) Martin Ostermann
1996-10-08 21:37 Martin Ostermann
1996-10-08 20:08 Martin Ostermann
1996-10-08 15:11 David Mosberger-Tang
1996-10-08  8:44 Martin Ostermann
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