Thread (23 messages) 23 messages, 7 authors, 2010-04-23

Re: Continual reading from the PowerPc time base register is not stable

From: Segher Boessenkool <hidden>
Date: 2010-03-25 21:37:14

         In my program, the value of the 64-bit time base register is read
out, and you will find the later value is even smaller than the earlier
value from the log “log_timebase”.
         Do you have any idea about this problem, thanks for your any
advice. Attached is the code and log.
Your code has a problem, you do (upper << 32) | lower, it should
be ((unsigned long long)upper << 32) | lower .

That is not the problem though: in your TBL, the bit with value
0x40 is stuck to 1.  Broken hardware?


Segher
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help