This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]