Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sparc,leon: Redefine MMU register access asi if CONFIG_LEON

SPARC-LEON has a different ASI for mmu register accesses.

Signed-off-by: Konrad Eisele <konrad@gaisler.com>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Konrad Eisele and committed by
David S. Miller
97fb58fa 5213a780

+4
+4
arch/sparc/include/asm/asi.h
··· 40 40 #define ASI_M_UNA01 0x01 /* Same here... */ 41 41 #define ASI_M_MXCC 0x02 /* Access to TI VIKING MXCC registers */ 42 42 #define ASI_M_FLUSH_PROBE 0x03 /* Reference MMU Flush/Probe; rw, ss */ 43 + #ifndef CONFIG_SPARC_LEON 43 44 #define ASI_M_MMUREGS 0x04 /* MMU Registers; rw, ss */ 45 + #else 46 + #define ASI_M_MMUREGS 0x19 47 + #endif /* CONFIG_SPARC_LEON */ 44 48 #define ASI_M_TLBDIAG 0x05 /* MMU TLB only Diagnostics */ 45 49 #define ASI_M_DIAGS 0x06 /* Reference MMU Diagnostics */ 46 50 #define ASI_M_IODIAG 0x07 /* MMU I/O TLB only Diagnostics */