aboutsummaryrefslogtreecommitdiffstats
path: root/arch/microblaze/include/asm/pgtable.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/microblaze/include/asm/pgtable.h')
-rw-r--r--arch/microblaze/include/asm/pgtable.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/microblaze/include/asm/pgtable.h b/arch/microblaze/include/asm/pgtable.h
index d4f421672d3b..cae268c22ba2 100644
--- a/arch/microblaze/include/asm/pgtable.h
+++ b/arch/microblaze/include/asm/pgtable.h
@@ -504,12 +504,9 @@ static inline pmd_t *pmd_offset(pgd_t *dir, unsigned long address)
504#define pte_offset_kernel(dir, addr) \ 504#define pte_offset_kernel(dir, addr) \
505 ((pte_t *) pmd_page_kernel(*(dir)) + pte_index(addr)) 505 ((pte_t *) pmd_page_kernel(*(dir)) + pte_index(addr))
506#define pte_offset_map(dir, addr) \ 506#define pte_offset_map(dir, addr) \
507 ((pte_t *) kmap_atomic(pmd_page(*(dir)), KM_PTE0) + pte_index(addr)) 507 ((pte_t *) kmap_atomic(pmd_page(*(dir))) + pte_index(addr))
508#define pte_offset_map_nested(dir, addr) \
509 ((pte_t *) kmap_atomic(pmd_page(*(dir)), KM_PTE1) + pte_index(addr))
510 508
511#define pte_unmap(pte) kunmap_atomic(pte, KM_PTE0) 509#define pte_unmap(pte) kunmap_atomic(pte)
512#define pte_unmap_nested(pte) kunmap_atomic(pte, KM_PTE1)
513 510
514/* Encode and decode a nonlinear file mapping entry */ 511/* Encode and decode a nonlinear file mapping entry */
515#define PTE_FILE_MAX_BITS 29 512#define PTE_FILE_MAX_BITS 29