This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] hp-timing for ppc32/64
- From: Steve Munroe <sjmunroe at us dot ibm dot com>
- To: Benjamin Herrenschmidt <benh at kernel dot crashing dot org>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Tue, 25 Oct 2005 17:45:07 -0500
- Subject: Re: [PATCH] hp-timing for ppc32/64
Benjamin Herrenschmidt <benh@kernel.crashing.org> wrote on 10/20/2005
05:00:00 PM:
>
> > What is the expected behavior with NO_TB?
> >
> > Silently fail. getimeofday syscall, use instruction that only work on
the
> > 601 or 403GX? Is this instruction the same for 601 vs 403GX?
>
> I would suggest either returning an error while trying to use hp-timer
> or fallback to gettimeofday(), what make more sense to use, I don't know
> the kind of usage patterns expected there. I wouldn't bother trying to
> implement the 601 RTC and the 403GX SPRs that has the timebase (I'm not
> even sure they are accessible from userland).
>
The 601 Real Time Clock (RTC) was readable in user state that would be
simpler (just a multiple and an add) than implementing the syscalls. Did
403GX have RTC? Google can't find any docs for the 403GX.
Steven J. Munroe
Linux on Power Toolchain Architect
IBM Corporation, Linux Technology Center