diff options
Diffstat (limited to 'include/asm-m32r')
-rw-r--r-- | include/asm-m32r/pgtable-2level.h | 4 | ||||
-rw-r--r-- | include/asm-m32r/pgtable.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/asm-m32r/pgtable-2level.h b/include/asm-m32r/pgtable-2level.h index 750925726a10..bca3475f9595 100644 --- a/include/asm-m32r/pgtable-2level.h +++ b/include/asm-m32r/pgtable-2level.h | |||
@@ -71,8 +71,8 @@ static inline pmd_t *pmd_offset(pgd_t * dir, unsigned long address) | |||
71 | #define pfn_pmd(pfn, prot) __pmd(((pfn) << PAGE_SHIFT) | pgprot_val(prot)) | 71 | #define pfn_pmd(pfn, prot) __pmd(((pfn) << PAGE_SHIFT) | pgprot_val(prot)) |
72 | 72 | ||
73 | #define PTE_FILE_MAX_BITS 29 | 73 | #define PTE_FILE_MAX_BITS 29 |
74 | #define pte_to_pgoff(pte) (((pte_val(pte) >> 2) & 0xef) | (((pte_val(pte) >> 10)) << 7)) | 74 | #define pte_to_pgoff(pte) (((pte_val(pte) >> 2) & 0x7f) | (((pte_val(pte) >> 10)) << 7)) |
75 | #define pgoff_to_pte(off) ((pte_t) { (((off) & 0xef) << 2) | (((off) >> 7) << 10) | _PAGE_FILE }) | 75 | #define pgoff_to_pte(off) ((pte_t) { (((off) & 0x7f) << 2) | (((off) >> 7) << 10) | _PAGE_FILE }) |
76 | 76 | ||
77 | #endif /* __KERNEL__ */ | 77 | #endif /* __KERNEL__ */ |
78 | #endif /* _ASM_M32R_PGTABLE_2LEVEL_H */ | 78 | #endif /* _ASM_M32R_PGTABLE_2LEVEL_H */ |
diff --git a/include/asm-m32r/pgtable.h b/include/asm-m32r/pgtable.h index 8b2a2f17e695..6604303fc47c 100644 --- a/include/asm-m32r/pgtable.h +++ b/include/asm-m32r/pgtable.h | |||
@@ -366,7 +366,7 @@ static inline void pmd_set(pmd_t * pmdp, pte_t * ptep) | |||
366 | #define pte_unmap_nested(pte) do { } while (0) | 366 | #define pte_unmap_nested(pte) do { } while (0) |
367 | 367 | ||
368 | /* Encode and de-code a swap entry */ | 368 | /* Encode and de-code a swap entry */ |
369 | #define __swp_type(x) (((x).val >> 2) & 0x3f) | 369 | #define __swp_type(x) (((x).val >> 2) & 0x1f) |
370 | #define __swp_offset(x) ((x).val >> 10) | 370 | #define __swp_offset(x) ((x).val >> 10) |
371 | #define __swp_entry(type, offset) \ | 371 | #define __swp_entry(type, offset) \ |
372 | ((swp_entry_t) { ((type) << 2) | ((offset) << 10) }) | 372 | ((swp_entry_t) { ((type) << 2) | ((offset) << 10) }) |