Skip to contentSkip to conversation

sparc32: Un-btfixup {pte,pmd,pgd}_clear().

PATCH New David Miller 1 participant 1 message May 12, 2012 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore

David Miller

author maintainer
#0 lore raw

PATCH 1/1 sparc32: Un-btfixup {pte,pmd,pgd}_clear().

Also we can remove BTFIXUPCALL_SWAPO0G0 as that is no longer used.

This was rather amusing, we were setting the btfixup vectors based upon cpu type but all to the same exact generic srmmu routines.

Furthermore, we were inconsistently marking the fixup as either BTFIXUPCALL_SWAPO0G0 or BTFIXUPCALL_NORM.

What a mess, glad we could untangle this stuff.

---
 arch/sparc/include/asm/btfixup.h    |    1 -
 arch/sparc/include/asm/pgtable_32.h |   44 ++++++++++++++++++++++++++++++-----
 arch/sparc/mm/srmmu.c               |   43 +---------------------------------
 3 files changed, 39 insertions(+), 49 deletions(-)
arch/sparc/include/asm/btfixup.h +0 -1
index 797722c..48b0141 100644
@@ -120,7 +120,6 @@ extern unsigned int ___illegal_use_of_BTFIXUP_INT_in_module(void);
 #define BTFIXUPCALL_RETO0	0x01000000			/* Return first parameter, actually a nop */
 #define BTFIXUPCALL_ANDNINT(i)	(0x902a2000|((i) & 0x1fff))	/* Possibly optimize to andn %o0, i, %o0 */
 #define BTFIXUPCALL_SWAPO0O1	0xd27a0000			/* Possibly optimize to swap [%o0],%o1 */
-#define BTFIXUPCALL_SWAPO0G0	0xc07a0000			/* Possibly optimize to swap [%o0],%g0 */
 #define BTFIXUPCALL_SWAPG1G2	0xc4784000			/* Possibly optimize to swap [%g1],%g2 */
 #define BTFIXUPCALL_STG0O0	0xc0220000			/* Possibly optimize to st %g0,[%o0] */
 #define BTFIXUPCALL_STO1O0	0xd2220000			/* Possibly optimize to st %o1,[%o0] */
arch/sparc/include/asm/pgtable_32.h +38 -6

79 lines not on this page · raw message

arch/sparc/mm/srmmu.c +1 -42

104 lines not on this page · raw message

Signature · 1 line
1.7.10