On Fri, 2007-11-16 at 09:30 -0500, Mathieu Desnoyers wrote: > I see that the standard macro to get the kernel address from a pfn is : > > asm-x86/page_32.h:#define pfn_to_kaddr(pfn) __va((pfn) << PAGE_SHIFT) > > The question might seem trivial, but I wonder how this deals with large > pages ?
Well, first of all, large pages are a virtual addressing concept. We're only talking about physical addresses here. You still address the memory the same way no matter if it is composed of large or small pages. The physical address (and pfn) never change no matter what we do with the page or how we allocate ir. -- Dave - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/