Commit fbeda19f authored by David Daney's avatar David Daney Committed by Ralf Baechle

MIPS: Allow CPU specific overriding of CP0 hwrena impl bits.

Some CPUs have implementation dependent rdhwr registers.  Allow them
to be enabled on a per CPU basis.
Signed-off-by: default avatarDavid Daney <ddaney@caviumnetworks.com>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 9cffd154
...@@ -234,4 +234,8 @@ ...@@ -234,4 +234,8 @@
#define cpu_scache_line_size() cpu_data[0].scache.linesz #define cpu_scache_line_size() cpu_data[0].scache.linesz
#endif #endif
#ifndef cpu_hwrena_impl_bits
#define cpu_hwrena_impl_bits 0
#endif
#endif /* __ASM_CPU_FEATURES_H */ #endif /* __ASM_CPU_FEATURES_H */
...@@ -1502,7 +1502,7 @@ void __cpuinit per_cpu_trap_init(void) ...@@ -1502,7 +1502,7 @@ void __cpuinit per_cpu_trap_init(void)
status_set); status_set);
if (cpu_has_mips_r2) { if (cpu_has_mips_r2) {
unsigned int enable = 0x0000000f; unsigned int enable = 0x0000000f | cpu_hwrena_impl_bits;
if (!noulri && cpu_has_userlocal) if (!noulri && cpu_has_userlocal)
enable |= (1 << 29); enable |= (1 << 29);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment