Hi,

On Sun, Aug 1, 2010 at 3:33 PM, Parmenides <[email protected]> wrote:
> Hi,
>
>    The following definition of PMD_SHIFT is from
> include/asm-i386/page.h of the kernel version 2.6.11
>
>                     #define LARGE_PAGE_SIZE (1UL << PMD_SHIFT)
>
> But, there is no the definition of PMD_SHIFT at all in page.h, and
> also no other header files included by it. How does this work?

I think you're supposed to #include <linux/mm.h>

This includes both asm/page.h and asm/pgtable.h, PMD_SHIFT is defined
by including asm/pgtable.h.

-- 
Dave Hylands
Shuswap, BC, Canada
http://www.DaveHylands.com/

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [email protected]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to