diff options
Diffstat (limited to 'arch/sh/include/asm')
-rw-r--r-- | arch/sh/include/asm/io.h | 2 | ||||
-rw-r--r-- | arch/sh/include/asm/page.h | 2 | ||||
-rw-r--r-- | arch/sh/include/asm/pgtable.h | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/arch/sh/include/asm/io.h b/arch/sh/include/asm/io.h index e49cfee95fb2..1857666136f2 100644 --- a/arch/sh/include/asm/io.h +++ b/arch/sh/include/asm/io.h | |||
@@ -347,6 +347,8 @@ __ioremap_mode(unsigned long offset, unsigned long size, unsigned long flags) | |||
347 | __ioremap_mode((offset), (size), _PAGE_CACHABLE) | 347 | __ioremap_mode((offset), (size), _PAGE_CACHABLE) |
348 | #define p3_ioremap(offset, size, flags) \ | 348 | #define p3_ioremap(offset, size, flags) \ |
349 | __ioremap((offset), (size), (flags)) | 349 | __ioremap((offset), (size), (flags)) |
350 | #define ioremap_prot(offset, size, flags) \ | ||
351 | __ioremap_mode((offset), (size), (flags)) | ||
350 | #define iounmap(addr) \ | 352 | #define iounmap(addr) \ |
351 | __iounmap((addr)) | 353 | __iounmap((addr)) |
352 | 354 | ||
diff --git a/arch/sh/include/asm/page.h b/arch/sh/include/asm/page.h index 77fb8bf02e4e..5871d78e47e5 100644 --- a/arch/sh/include/asm/page.h +++ b/arch/sh/include/asm/page.h | |||
@@ -104,6 +104,8 @@ typedef struct { unsigned long pgd; } pgd_t; | |||
104 | 104 | ||
105 | typedef struct page *pgtable_t; | 105 | typedef struct page *pgtable_t; |
106 | 106 | ||
107 | #define pte_pgprot(x) __pgprot(pte_val(x) & PTE_FLAGS_MASK) | ||
108 | |||
107 | #endif /* !__ASSEMBLY__ */ | 109 | #endif /* !__ASSEMBLY__ */ |
108 | 110 | ||
109 | /* | 111 | /* |
diff --git a/arch/sh/include/asm/pgtable.h b/arch/sh/include/asm/pgtable.h index a4a8f8b93463..52220d70a096 100644 --- a/arch/sh/include/asm/pgtable.h +++ b/arch/sh/include/asm/pgtable.h | |||
@@ -76,6 +76,7 @@ extern unsigned long empty_zero_page[PAGE_SIZE / sizeof(unsigned long)]; | |||
76 | #endif | 76 | #endif |
77 | 77 | ||
78 | #define PTE_PHYS_MASK (PHYS_ADDR_MASK & PAGE_MASK) | 78 | #define PTE_PHYS_MASK (PHYS_ADDR_MASK & PAGE_MASK) |
79 | #define PTE_FLAGS_MASK (~(PTE_PHYS_MASK) << PAGE_SHIFT) | ||
79 | 80 | ||
80 | #ifdef CONFIG_SUPERH32 | 81 | #ifdef CONFIG_SUPERH32 |
81 | #define VMALLOC_START (P3SEG) | 82 | #define VMALLOC_START (P3SEG) |