diff options
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/include/asm/mipsregs.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/mips/include/asm/mipsregs.h b/arch/mips/include/asm/mipsregs.h index edda1daf742f..49382d5e891a 100644 --- a/arch/mips/include/asm/mipsregs.h +++ b/arch/mips/include/asm/mipsregs.h | |||
@@ -251,6 +251,14 @@ | |||
251 | #define PL_256M 28 | 251 | #define PL_256M 28 |
252 | 252 | ||
253 | /* | 253 | /* |
254 | * PageGrain bits | ||
255 | */ | ||
256 | #define PG_RIE (_ULCAST_(1) << 31) | ||
257 | #define PG_XIE (_ULCAST_(1) << 30) | ||
258 | #define PG_ELPA (_ULCAST_(1) << 29) | ||
259 | #define PG_ESP (_ULCAST_(1) << 28) | ||
260 | |||
261 | /* | ||
254 | * R4x00 interrupt enable / cause bits | 262 | * R4x00 interrupt enable / cause bits |
255 | */ | 263 | */ |
256 | #define IE_SW0 (_ULCAST_(1) << 8) | 264 | #define IE_SW0 (_ULCAST_(1) << 8) |
@@ -830,6 +838,9 @@ do { \ | |||
830 | #define read_c0_pagemask() __read_32bit_c0_register($5, 0) | 838 | #define read_c0_pagemask() __read_32bit_c0_register($5, 0) |
831 | #define write_c0_pagemask(val) __write_32bit_c0_register($5, 0, val) | 839 | #define write_c0_pagemask(val) __write_32bit_c0_register($5, 0, val) |
832 | 840 | ||
841 | #define read_c0_pagegrain() __read_32bit_c0_register($5, 1) | ||
842 | #define write_c0_pagegrain(val) __write_32bit_c0_register($5, 1, val) | ||
843 | |||
833 | #define read_c0_wired() __read_32bit_c0_register($6, 0) | 844 | #define read_c0_wired() __read_32bit_c0_register($6, 0) |
834 | #define write_c0_wired(val) __write_32bit_c0_register($6, 0, val) | 845 | #define write_c0_wired(val) __write_32bit_c0_register($6, 0, val) |
835 | 846 | ||