diff options
author | Daniel Schwierzeck <daniel.schwierzeck@gmail.com> | 2016-02-08 00:37:59 +0100 |
---|---|---|
committer | Daniel Schwierzeck <daniel.schwierzeck@gmail.com> | 2016-11-30 16:11:46 +0100 |
commit | 65d297af7c6a08ec65bf005fa9bd5cdb955efe39 (patch) | |
tree | de9839a98dd41a56a6a93cf61230c6c0d3ec43ea /arch/mips/include | |
parent | 345490fcd68d830adef7fcfa4ef5bf5681c29546 (diff) | |
download | u-boot-imx-65d297af7c6a08ec65bf005fa9bd5cdb955efe39.zip u-boot-imx-65d297af7c6a08ec65bf005fa9bd5cdb955efe39.tar.gz u-boot-imx-65d297af7c6a08ec65bf005fa9bd5cdb955efe39.tar.bz2 |
MIPS: fix iand optimize setup of CP0 registers
Clear cp0 status while preserving implementation specific bits.
Set bits BEV and ERL as the arch specification requires after
a reset or soft-reset exception.
Extend and fix initialization of watch registers. Check if additional
watch register sets are implemented and initialize them too.
Initialize cp0 count as early as possible to get the most
accurate boot timing.
Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Diffstat (limited to 'arch/mips/include')
-rw-r--r-- | arch/mips/include/asm/mipsregs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/mips/include/asm/mipsregs.h b/arch/mips/include/asm/mipsregs.h index 9ab5063..7a9d222 100644 --- a/arch/mips/include/asm/mipsregs.h +++ b/arch/mips/include/asm/mipsregs.h @@ -299,6 +299,7 @@ #define STATUSF_IP14 (_ULCAST_(1) << 6) #define STATUSB_IP15 7 #define STATUSF_IP15 (_ULCAST_(1) << 7) +#define ST0_IMPL (_ULCAST_(3) << 16) #define ST0_CH 0x00040000 #define ST0_NMI 0x00080000 #define ST0_SR 0x00100000 |