aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-i386/pgtable.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-i386/pgtable.h')
-rw-r--r--include/asm-i386/pgtable.h23
1 files changed, 4 insertions, 19 deletions
diff --git a/include/asm-i386/pgtable.h b/include/asm-i386/pgtable.h
index 5b88a6a1278e..6599f2aa91b7 100644
--- a/include/asm-i386/pgtable.h
+++ b/include/asm-i386/pgtable.h
@@ -267,7 +267,6 @@ extern void vmalloc_sync_all(void);
267 */ 267 */
268#define pte_update(mm, addr, ptep) do { } while (0) 268#define pte_update(mm, addr, ptep) do { } while (0)
269#define pte_update_defer(mm, addr, ptep) do { } while (0) 269#define pte_update_defer(mm, addr, ptep) do { } while (0)
270#define paravirt_map_pt_hook(slot, va, pfn) do { } while (0)
271 270
272#define raw_ptep_get_and_clear(xp) native_ptep_get_and_clear(xp) 271#define raw_ptep_get_and_clear(xp) native_ptep_get_and_clear(xp)
273#endif 272#endif
@@ -476,24 +475,10 @@ extern pte_t *lookup_address(unsigned long address);
476#endif 475#endif
477 476
478#if defined(CONFIG_HIGHPTE) 477#if defined(CONFIG_HIGHPTE)
479#define pte_offset_map(dir, address) \ 478#define pte_offset_map(dir, address) \
480({ \ 479 ((pte_t *)kmap_atomic(pmd_page(*(dir)),KM_PTE0) + pte_index(address))
481 pte_t *__ptep; \ 480#define pte_offset_map_nested(dir, address) \
482 unsigned pfn = pmd_val(*(dir)) >> PAGE_SHIFT; \ 481 ((pte_t *)kmap_atomic(pmd_page(*(dir)),KM_PTE1) + pte_index(address))
483 __ptep = (pte_t *)kmap_atomic(pfn_to_page(pfn),KM_PTE0);\
484 paravirt_map_pt_hook(KM_PTE0,__ptep, pfn); \
485 __ptep = __ptep + pte_index(address); \
486 __ptep; \
487})
488#define pte_offset_map_nested(dir, address) \
489({ \
490 pte_t *__ptep; \
491 unsigned pfn = pmd_val(*(dir)) >> PAGE_SHIFT; \
492 __ptep = (pte_t *)kmap_atomic(pfn_to_page(pfn),KM_PTE1);\
493 paravirt_map_pt_hook(KM_PTE1,__ptep, pfn); \
494 __ptep = __ptep + pte_index(address); \
495 __ptep; \
496})
497#define pte_unmap(pte) kunmap_atomic(pte, KM_PTE0) 482#define pte_unmap(pte) kunmap_atomic(pte, KM_PTE0)
498#define pte_unmap_nested(pte) kunmap_atomic(pte, KM_PTE1) 483#define pte_unmap_nested(pte) kunmap_atomic(pte, KM_PTE1)
499#else 484#else