How to avoid volatiles

Srivatsa Bhat bhat.srivatsa at gmail.com
Mon Oct 24 06:39:05 EDT 2011


On Fri, Oct 14, 2011 at 2:51 PM, Prabhakar Lad
<prabhakar.csengg at gmail.com>wrote:

> Hi everyone,
>
> I had question in want eradicate volatile from here:  for example:
>
>
>    #define 0x01c40800
>
>
>     if ((volatile void *)pllbase == (volatile void
> *)DAVINCI_PLL_CNTRL0_BASE) /**HERE**/
>         return 8;
>     else
>         return pll_div(pllbase, PLLC_PREDIV);
>
>
>
Hi,

Take a look at this:
http://www.netrino.com/Embedded-Systems/How-To/C-Volatile-Keyword

Regards,
Srivatsa S. Bhat
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20111024/c5368a7a/attachment.html 


More information about the Kernelnewbies mailing list