Commit 046581f9 authored by Paul Mundt's avatar Paul Mundt

sh: Provide a dummy _PAGE_WIRED flag for non-X2TLB parts.

This provides a dummy value for legacy parts which permits the entry
wiring to be open-coded. The compiler takes care of optimizing the entry
wiring away in these cases.
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 6d63e73d
...@@ -143,12 +143,14 @@ static inline unsigned long copy_ptea_attributes(unsigned long x) ...@@ -143,12 +143,14 @@ static inline unsigned long copy_ptea_attributes(unsigned long x)
# elif defined(CONFIG_HUGETLB_PAGE_SIZE_64MB) # elif defined(CONFIG_HUGETLB_PAGE_SIZE_64MB)
# define _PAGE_SZHUGE (_PAGE_EXT_ESZ2 | _PAGE_EXT_ESZ3) # define _PAGE_SZHUGE (_PAGE_EXT_ESZ2 | _PAGE_EXT_ESZ3)
# endif # endif
# define _PAGE_WIRED (_PAGE_EXT(_PAGE_EXT_WIRED))
#else #else
# if defined(CONFIG_HUGETLB_PAGE_SIZE_64K) # if defined(CONFIG_HUGETLB_PAGE_SIZE_64K)
# define _PAGE_SZHUGE (_PAGE_SZ1) # define _PAGE_SZHUGE (_PAGE_SZ1)
# elif defined(CONFIG_HUGETLB_PAGE_SIZE_1MB) # elif defined(CONFIG_HUGETLB_PAGE_SIZE_1MB)
# define _PAGE_SZHUGE (_PAGE_SZ0 | _PAGE_SZ1) # define _PAGE_SZHUGE (_PAGE_SZ0 | _PAGE_SZ1)
# endif # endif
# define _PAGE_WIRED (0)
#endif #endif
/* /*
...@@ -166,8 +168,6 @@ static inline unsigned long copy_ptea_attributes(unsigned long x) ...@@ -166,8 +168,6 @@ static inline unsigned long copy_ptea_attributes(unsigned long x)
(PTE_MASK | _PAGE_ACCESSED | _PAGE_CACHABLE | \ (PTE_MASK | _PAGE_ACCESSED | _PAGE_CACHABLE | \
_PAGE_DIRTY | _PAGE_SPECIAL) _PAGE_DIRTY | _PAGE_SPECIAL)
#define _PAGE_WIRED (_PAGE_EXT(_PAGE_EXT_WIRED))
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
#if defined(CONFIG_X2TLB) /* SH-X2 TLB */ #if defined(CONFIG_X2TLB) /* SH-X2 TLB */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment