[Cbe-oss-dev] [PATCH 1/2]MARS/core: Tick counter api

Kazunori Asayama asayama at sm.sony.co.jp
Tue Nov 25 11:59:46 EST 2008


Arnd Bergmann wrote:
> On Friday 21 November 2008, Yuji Mano wrote:
>> +uint32_t mars_get_ticks(void)
>> +{
>> +       return __mftb() & 0xffffffff;
>> +}
> 
> Where does the definition of __mftb come from? Does it have the fixup
> for the cell erratum reading the time base?

This is one of PPU intrinsics and I don't think __mftb fixes the
problem. However, since we are using only lower 32bits, we should not be
affected by the problem.

-- 
(ASAYAMA Kazunori
  (asayama at sm.sony.co.jp))
t



More information about the cbe-oss-dev mailing list