[MIPS] Fix configuration of R2 CPU features and multithreading.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
@@ -1050,7 +1050,7 @@ void *set_except_vector(int n, void *addr)
|
||||
return (void *)old_handler;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_CPU_MIPSR2
|
||||
#ifdef CONFIG_CPU_MIPSR2_SRS
|
||||
/*
|
||||
* MIPSR2 shadow register set allocation
|
||||
* FIXME: SMP...
|
||||
@@ -1069,11 +1069,9 @@ static struct shadow_registers {
|
||||
|
||||
static void mips_srs_init(void)
|
||||
{
|
||||
#ifdef CONFIG_CPU_MIPSR2_SRS
|
||||
shadow_registers.sr_supported = ((read_c0_srsctl() >> 26) & 0x0f) + 1;
|
||||
printk(KERN_INFO "%d MIPSR2 register sets available\n",
|
||||
shadow_registers.sr_supported);
|
||||
#endif
|
||||
shadow_registers.sr_allocated = 1; /* Set 0 used by kernel */
|
||||
}
|
||||
|
||||
@@ -1198,7 +1196,14 @@ void *set_vi_handler(int n, void *addr)
|
||||
{
|
||||
return set_vi_srs_handler(n, addr, 0);
|
||||
}
|
||||
#endif
|
||||
|
||||
#else
|
||||
|
||||
static inline void mips_srs_init(void)
|
||||
{
|
||||
}
|
||||
|
||||
#endif /* CONFIG_CPU_MIPSR2_SRS */
|
||||
|
||||
/*
|
||||
* This is used by native signal handling
|
||||
@@ -1388,9 +1393,7 @@ void __init trap_init(void)
|
||||
else
|
||||
ebase = CAC_BASE;
|
||||
|
||||
#ifdef CONFIG_CPU_MIPSR2
|
||||
mips_srs_init();
|
||||
#endif
|
||||
|
||||
per_cpu_trap_init();
|
||||
|
||||
|
Reference in New Issue
Block a user