diff options
author | David S. Miller <davem@davemloft.net> | 2012-05-12 13:30:28 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-05-12 13:30:28 -0700 |
commit | f167edaee0b796994b0d7ba6dc4eff25e7b424d0 (patch) | |
tree | 49687b78bb2dcc7b6fb9c8215367f84c492f1d16 /arch/sparc/include | |
parent | 7d9fa4aa3d41e82d5d52612d07211ee243df3a20 (diff) | |
download | op-kernel-dev-f167edaee0b796994b0d7ba6dc4eff25e7b424d0.zip op-kernel-dev-f167edaee0b796994b0d7ba6dc4eff25e7b424d0.tar.gz |
sparc32: Un-btfixup pmd_{bad,present}().
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/include')
-rw-r--r-- | arch/sparc/include/asm/pgtable_32.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/arch/sparc/include/asm/pgtable_32.h b/arch/sparc/include/asm/pgtable_32.h index 9b4ff5a..ac85f9b 100644 --- a/arch/sparc/include/asm/pgtable_32.h +++ b/arch/sparc/include/asm/pgtable_32.h @@ -153,17 +153,21 @@ static inline void pte_clear(struct mm_struct *mm, unsigned long addr, pte_t *pt __pte_clear(ptep); } -BTFIXUPDEF_CALL_CONST(int, pmd_bad, pmd_t) -BTFIXUPDEF_CALL_CONST(int, pmd_present, pmd_t) +static inline int pmd_bad(pmd_t pmd) +{ + return (pmd_val(pmd) & SRMMU_ET_MASK) != SRMMU_ET_PTD; +} + +static inline int pmd_present(pmd_t pmd) +{ + return ((pmd_val(pmd) & SRMMU_ET_MASK) == SRMMU_ET_PTD); +} static inline int pmd_none(pmd_t pmd) { return !pmd_val(pmd); } -#define pmd_bad(pmd) BTFIXUP_CALL(pmd_bad)(pmd) -#define pmd_present(pmd) BTFIXUP_CALL(pmd_present)(pmd) - static inline void pmd_clear(pmd_t *pmdp) { int i; |