]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
x86, xen: fix use of pgd_page now that it really does return a page
authorJeremy Fitzhardinge <jeremy@goop.org>
Thu, 6 Nov 2008 21:48:24 +0000 (13:48 -0800)
committerIngo Molnar <mingo@elte.hu>
Thu, 6 Nov 2008 22:20:47 +0000 (23:20 +0100)
commit47cb2ed9df2789fc4a3fe1201e475078f93c4839
tree5d2bc2cdc63496d8b073eeea09d939b900129a46
parent8d00450d296dedec9ada38d43b83e79cca6fd5a3
x86, xen: fix use of pgd_page now that it really does return a page

Impact: fix 32-bit Xen guest boot crash

On 32-bit PAE, pud_page, for no good reason, didn't really return a
struct page *.  Since Jan Beulich's fix "i386/PAE: fix pud_page()",
pud_page does return a struct page *.

Because PAE has 3 pagetable levels, the pud level is folded into the
pgd level, so pgd_page() is the same as pud_page(), and now returns
a struct page *.  Update the xen/mmu.c code which uses pgd_page()
accordingly.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/xen/mmu.c