Port-powerpc archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
RE: ci_lasttb should be u_quad_t?
lasttb is used to calculate the difference in real time since
the last tick - it only has to be as many bits as the longest miss.
I have coded it for 64 and 32 - but it makes no diffence :-)
(as long as its unsigned arithmatic).
Aymeric Vincent <Aymeric.Vincent%labri.fr@localhost> wrote:
>
>While investigating the lockups on macppc, I noticed in
>sys/arch/powerpc/include/cpu.h
>that the ci_lasttb field of struct cpu_info is a u_long.
>
>However, seeing how it is used in sys/arch/macppc/macppc/clock.c
>in microtime(), I suspect it should really contain the full tb and not
>just its lower bits.
>
>Is there a reason that I'm not seeing for keeping only the low-order
>bits? Or is it just that microtime() is not an important function and
>it can be expected to produce values going backward "very rarely"?
>
> Aymeric
>
--
-Derek
__________________________________________________________________
New! Unlimited Access from the Netscape Internet Service.
Beta test the new Netscape Internet Service for only $1.00 per month until
3/1/04.
Sign up today at http://isp.netscape.com/register
Act now to get a personalized email address!
Netscape. Just the Net You Need.
Home |
Main Index |
Thread Index |
Old Index