diff options
author | David S. Miller <davem@davemloft.net> | 2010-05-25 23:36:31 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-05-25 23:36:31 -0700 |
commit | c87fe1c05d57e3fecd62e56da1b1ac4291116ebf (patch) | |
tree | 48b6aa47000becb4ba08c1dc230e1471f64b7b02 /arch/sparc/mm/sun4c.c | |
parent | b1cdc4670b9508fcd47a15fbd12f70d269880b37 (diff) | |
download | talos-op-linux-c87fe1c05d57e3fecd62e56da1b1ac4291116ebf.tar.gz talos-op-linux-c87fe1c05d57e3fecd62e56da1b1ac4291116ebf.zip |
sparc32: Kill none_mask, it's bogus.
For some reason, the pte_none() calculation for srmmu sparc32
chips was masking out the top 4 bits. That doesn't make any
sense, as those are just some of the physical bits of the PTE
encoding.
Furthermore, this mistake breaks things when the offset of of a swap
entry has a large enough offset as reported by Тхай Кирилл.
Sun4c always set it to zero, so it's really completely useless,
kill it.
Reported-by: Тхай Кирилл <tkhai@yandex.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/mm/sun4c.c')
-rw-r--r-- | arch/sparc/mm/sun4c.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/sparc/mm/sun4c.c b/arch/sparc/mm/sun4c.c index cf38846753dd..4289f90f8697 100644 --- a/arch/sparc/mm/sun4c.c +++ b/arch/sparc/mm/sun4c.c @@ -2087,9 +2087,6 @@ void __init ld_mmu_sun4c(void) BTFIXUPSET_CALL(set_pte, sun4c_set_pte, BTFIXUPCALL_STO1O0); - /* The 2.4.18 code does not set this on sun4c, how does it work? XXX */ - /* BTFIXUPSET_SETHI(none_mask, 0x00000000); */ /* Defaults to zero? */ - BTFIXUPSET_CALL(pte_pfn, sun4c_pte_pfn, BTFIXUPCALL_NORM); #if 0 /* PAGE_SHIFT <= 12 */ /* Eek. Investigate. XXX */ BTFIXUPSET_CALL(pmd_page, sun4c_pmd_page, BTFIXUPCALL_ANDNINT(PAGE_SIZE - 1)); |