X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=arch%2Fi386%2Fmm%2Fboot_ioremap.c;h=4de95a17a7d4de6e7cefc8604da03f3dda0fa56f;hb=refs%2Fheads%2Fvserver;hp=523b30634e0a87c76a32ca57f0977593b3364108;hpb=76828883507a47dae78837ab5dec5a5b4513c667;p=linux-2.6.git diff --git a/arch/i386/mm/boot_ioremap.c b/arch/i386/mm/boot_ioremap.c index 523b30634..4de95a17a 100644 --- a/arch/i386/mm/boot_ioremap.c +++ b/arch/i386/mm/boot_ioremap.c @@ -15,8 +15,8 @@ * boot_pte_t is defined only if this all works correctly */ -#include #undef CONFIG_X86_PAE +#undef CONFIG_PARAVIRT #include #include #include @@ -30,8 +30,11 @@ */ #define BOOT_PTE_PTRS (PTRS_PER_PTE*2) -#define boot_pte_index(address) \ - (((address) >> PAGE_SHIFT) & (BOOT_PTE_PTRS - 1)) + +static unsigned long boot_pte_index(unsigned long vaddr) +{ + return __pa(vaddr) >> PAGE_SHIFT; +} static inline boot_pte_t* boot_vaddr_to_pte(void *address) {