aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-arm/pgtable.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-arm/pgtable.h')
-rw-r--r--include/asm-arm/pgtable.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/asm-arm/pgtable.h b/include/asm-arm/pgtable.h
index 38b2b55688e2..ed8cb5963e99 100644
--- a/include/asm-arm/pgtable.h
+++ b/include/asm-arm/pgtable.h
@@ -231,9 +231,9 @@ extern struct page *empty_zero_page;
231#define pte_none(pte) (!pte_val(pte)) 231#define pte_none(pte) (!pte_val(pte))
232#define pte_clear(mm,addr,ptep) set_pte_at((mm),(addr),(ptep), __pte(0)) 232#define pte_clear(mm,addr,ptep) set_pte_at((mm),(addr),(ptep), __pte(0))
233#define pte_page(pte) (pfn_to_page(pte_pfn(pte))) 233#define pte_page(pte) (pfn_to_page(pte_pfn(pte)))
234#define pte_offset_kernel(dir,addr) (pmd_page_kernel(*(dir)) + __pte_index(addr)) 234#define pte_offset_kernel(dir,addr) (pmd_page_vaddr(*(dir)) + __pte_index(addr))
235#define pte_offset_map(dir,addr) (pmd_page_kernel(*(dir)) + __pte_index(addr)) 235#define pte_offset_map(dir,addr) (pmd_page_vaddr(*(dir)) + __pte_index(addr))
236#define pte_offset_map_nested(dir,addr) (pmd_page_kernel(*(dir)) + __pte_index(addr)) 236#define pte_offset_map_nested(dir,addr) (pmd_page_vaddr(*(dir)) + __pte_index(addr))
237#define pte_unmap(pte) do { } while (0) 237#define pte_unmap(pte) do { } while (0)
238#define pte_unmap_nested(pte) do { } while (0) 238#define pte_unmap_nested(pte) do { } while (0)
239 239
@@ -298,7 +298,7 @@ PTE_BIT_FUNC(mkyoung, |= L_PTE_YOUNG);
298 clean_pmd_entry(pmdp); \ 298 clean_pmd_entry(pmdp); \
299 } while (0) 299 } while (0)
300 300
301static inline pte_t *pmd_page_kernel(pmd_t pmd) 301static inline pte_t *pmd_page_vaddr(pmd_t pmd)
302{ 302{
303 unsigned long ptr; 303 unsigned long ptr;
304 304