[PATCH] hp-timing for ppc32/64
Steve Munroe
sjmunroe@us.ibm.com
Tue Oct 25 22:45:00 GMT 2005
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
More information about the Libc-alpha
mailing list