diff options
Diffstat (limited to 'arch/mips/include')
-rw-r--r-- | arch/mips/include/asm/mipsregs.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/mips/include/asm/mipsregs.h b/arch/mips/include/asm/mipsregs.h index 9316324d070d..207d098f707f 100644 --- a/arch/mips/include/asm/mipsregs.h +++ b/arch/mips/include/asm/mipsregs.h | |||
@@ -1000,6 +1000,26 @@ do { \ | |||
1000 | #define read_c0_ebase() __read_32bit_c0_register($15, 1) | 1000 | #define read_c0_ebase() __read_32bit_c0_register($15, 1) |
1001 | #define write_c0_ebase(val) __write_32bit_c0_register($15, 1, val) | 1001 | #define write_c0_ebase(val) __write_32bit_c0_register($15, 1, val) |
1002 | 1002 | ||
1003 | |||
1004 | /* Cavium OCTEON (cnMIPS) */ | ||
1005 | #define read_c0_cvmcount() __read_ulong_c0_register($9, 6) | ||
1006 | #define write_c0_cvmcount(val) __write_ulong_c0_register($9, 6, val) | ||
1007 | |||
1008 | #define read_c0_cvmctl() __read_64bit_c0_register($9, 7) | ||
1009 | #define write_c0_cvmctl(val) __write_64bit_c0_register($9, 7, val) | ||
1010 | |||
1011 | #define read_c0_cvmmemctl() __read_64bit_c0_register($11, 7) | ||
1012 | #define write_c0_cvmmemctl(val) __write_64bit_c0_register($11, 7, val) | ||
1013 | /* | ||
1014 | * The cacheerr registers are not standardized. On OCTEON, they are | ||
1015 | * 64 bits wide. | ||
1016 | */ | ||
1017 | #define read_octeon_c0_icacheerr() __read_64bit_c0_register($27, 0) | ||
1018 | #define write_octeon_c0_icacheerr(val) __write_64bit_c0_register($27, 0, val) | ||
1019 | |||
1020 | #define read_octeon_c0_dcacheerr() __read_64bit_c0_register($27, 1) | ||
1021 | #define write_octeon_c0_dcacheerr(val) __write_64bit_c0_register($27, 1, val) | ||
1022 | |||
1003 | /* | 1023 | /* |
1004 | * Macros to access the floating point coprocessor control registers | 1024 | * Macros to access the floating point coprocessor control registers |
1005 | */ | 1025 | */ |