Re: [PATCH 3/6] powerpc: add memory map support to Freescale RapidIO block

2009-05-21 Thread Li Yang
On Wed, May 13, 2009 at 6:05 AM, Andrew Morton wrote: > On Tue, 12 May 2009 16:36:00 +0800 > Li Yang wrote: > >> +     align = (size < 0x1000) ? 0x1000 : 1 << (__ilog2(size - 1) + 1); >> + >> +     /* Align the size */ >> +     if ((lstart + size) > (_ALIGN_DOWN(lstart, align) + align)) { > > __i

Re: [PATCH 3/6] powerpc: add memory map support to Freescale RapidIO block

2009-05-12 Thread Andrew Morton
On Tue, 12 May 2009 16:36:00 +0800 Li Yang wrote: > + align = (size < 0x1000) ? 0x1000 : 1 << (__ilog2(size - 1) + 1); > + > + /* Align the size */ > + if ((lstart + size) > (_ALIGN_DOWN(lstart, align) + align)) { __ilog2() and _ALIGN_DOWN() are powerpc-specific functions. It would