diff options
Diffstat (limited to 'arch/mips/include/asm/mipsregs.h')
-rw-r--r-- | arch/mips/include/asm/mipsregs.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/mips/include/asm/mipsregs.h b/arch/mips/include/asm/mipsregs.h index bbc3dd4294bc..3e025b5311db 100644 --- a/arch/mips/include/asm/mipsregs.h +++ b/arch/mips/include/asm/mipsregs.h | |||
@@ -568,11 +568,23 @@ | |||
568 | #define MIPS_CONF1_PC (_ULCAST_(1) << 4) | 568 | #define MIPS_CONF1_PC (_ULCAST_(1) << 4) |
569 | #define MIPS_CONF1_MD (_ULCAST_(1) << 5) | 569 | #define MIPS_CONF1_MD (_ULCAST_(1) << 5) |
570 | #define MIPS_CONF1_C2 (_ULCAST_(1) << 6) | 570 | #define MIPS_CONF1_C2 (_ULCAST_(1) << 6) |
571 | #define MIPS_CONF1_DA_SHF 7 | ||
572 | #define MIPS_CONF1_DA_SZ 3 | ||
571 | #define MIPS_CONF1_DA (_ULCAST_(7) << 7) | 573 | #define MIPS_CONF1_DA (_ULCAST_(7) << 7) |
574 | #define MIPS_CONF1_DL_SHF 10 | ||
575 | #define MIPS_CONF1_DL_SZ 3 | ||
572 | #define MIPS_CONF1_DL (_ULCAST_(7) << 10) | 576 | #define MIPS_CONF1_DL (_ULCAST_(7) << 10) |
577 | #define MIPS_CONF1_DS_SHF 13 | ||
578 | #define MIPS_CONF1_DS_SZ 3 | ||
573 | #define MIPS_CONF1_DS (_ULCAST_(7) << 13) | 579 | #define MIPS_CONF1_DS (_ULCAST_(7) << 13) |
580 | #define MIPS_CONF1_IA_SHF 16 | ||
581 | #define MIPS_CONF1_IA_SZ 3 | ||
574 | #define MIPS_CONF1_IA (_ULCAST_(7) << 16) | 582 | #define MIPS_CONF1_IA (_ULCAST_(7) << 16) |
583 | #define MIPS_CONF1_IL_SHF 19 | ||
584 | #define MIPS_CONF1_IL_SZ 3 | ||
575 | #define MIPS_CONF1_IL (_ULCAST_(7) << 19) | 585 | #define MIPS_CONF1_IL (_ULCAST_(7) << 19) |
586 | #define MIPS_CONF1_IS_SHF 22 | ||
587 | #define MIPS_CONF1_IS_SZ 3 | ||
576 | #define MIPS_CONF1_IS (_ULCAST_(7) << 22) | 588 | #define MIPS_CONF1_IS (_ULCAST_(7) << 22) |
577 | #define MIPS_CONF1_TLBS_SHIFT (25) | 589 | #define MIPS_CONF1_TLBS_SHIFT (25) |
578 | #define MIPS_CONF1_TLBS_SIZE (6) | 590 | #define MIPS_CONF1_TLBS_SIZE (6) |
@@ -653,9 +665,16 @@ | |||
653 | 665 | ||
654 | #define MIPS_CONF7_RPS (_ULCAST_(1) << 2) | 666 | #define MIPS_CONF7_RPS (_ULCAST_(1) << 2) |
655 | 667 | ||
668 | #define MIPS_CONF7_IAR (_ULCAST_(1) << 10) | ||
669 | #define MIPS_CONF7_AR (_ULCAST_(1) << 16) | ||
670 | |||
656 | /* EntryHI bit definition */ | 671 | /* EntryHI bit definition */ |
657 | #define MIPS_ENTRYHI_EHINV (_ULCAST_(1) << 10) | 672 | #define MIPS_ENTRYHI_EHINV (_ULCAST_(1) << 10) |
658 | 673 | ||
674 | /* CMGCRBase bit definitions */ | ||
675 | #define MIPS_CMGCRB_BASE 11 | ||
676 | #define MIPS_CMGCRF_BASE (~_ULCAST_((1 << MIPS_CMGCRB_BASE) - 1)) | ||
677 | |||
659 | /* | 678 | /* |
660 | * Bits in the MIPS32/64 coprocessor 1 (FPU) revision register. | 679 | * Bits in the MIPS32/64 coprocessor 1 (FPU) revision register. |
661 | */ | 680 | */ |
@@ -1010,6 +1029,8 @@ do { \ | |||
1010 | 1029 | ||
1011 | #define read_c0_prid() __read_32bit_c0_register($15, 0) | 1030 | #define read_c0_prid() __read_32bit_c0_register($15, 0) |
1012 | 1031 | ||
1032 | #define read_c0_cmgcrbase() __read_ulong_c0_register($15, 3) | ||
1033 | |||
1013 | #define read_c0_config() __read_32bit_c0_register($16, 0) | 1034 | #define read_c0_config() __read_32bit_c0_register($16, 0) |
1014 | #define read_c0_config1() __read_32bit_c0_register($16, 1) | 1035 | #define read_c0_config1() __read_32bit_c0_register($16, 1) |
1015 | #define read_c0_config2() __read_32bit_c0_register($16, 2) | 1036 | #define read_c0_config2() __read_32bit_c0_register($16, 2) |
@@ -1883,6 +1904,7 @@ change_c0_##name(unsigned int change, unsigned int newbits) \ | |||
1883 | __BUILD_SET_C0(status) | 1904 | __BUILD_SET_C0(status) |
1884 | __BUILD_SET_C0(cause) | 1905 | __BUILD_SET_C0(cause) |
1885 | __BUILD_SET_C0(config) | 1906 | __BUILD_SET_C0(config) |
1907 | __BUILD_SET_C0(config5) | ||
1886 | __BUILD_SET_C0(intcontrol) | 1908 | __BUILD_SET_C0(intcontrol) |
1887 | __BUILD_SET_C0(intctl) | 1909 | __BUILD_SET_C0(intctl) |
1888 | __BUILD_SET_C0(srsmap) | 1910 | __BUILD_SET_C0(srsmap) |