x86/lguest: fix pgdir pmd index calculation
[sfrench/cifs-2.6.git] / arch / x86 / lguest / boot.c
index 1e613fb03e32ad2c02aa77810a808eb96b77c57a..cccb38a59653bff74271593004f995a457645b54 100644 (file)
@@ -481,7 +481,7 @@ static void lguest_set_pmd(pmd_t *pmdp, pmd_t pmdval)
 {
        *pmdp = pmdval;
        lazy_hcall(LHCALL_SET_PMD, __pa(pmdp)&PAGE_MASK,
-                  (__pa(pmdp)&(PAGE_SIZE-1))/4, 0);
+                  (__pa(pmdp)&(PAGE_SIZE-1)), 0);
 }
 
 /* There are a couple of legacy places where the kernel sets a PTE, but we