diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2007-05-31 09:03:45 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2007-06-11 13:20:54 -0400 |
commit | 6a05888d713dd915d3268000a479e38646aa423f (patch) | |
tree | ade4e4ac2ff5c77a182ec10cd7aa2586c38a7411 /arch | |
parent | 8e8a52ed87e5b1fa60108b525774f2a28b4016d5 (diff) |
[MIPS] SMTC: The MT ASE requires to initialize c0_pagemask and c0_wired.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/kernel/traps.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c index 44f0a2c11807..a7a17eb9bfcd 100644 --- a/arch/mips/kernel/traps.c +++ b/arch/mips/kernel/traps.c | |||
@@ -1384,6 +1384,13 @@ void __init per_cpu_trap_init(void) | |||
1384 | cpu_cache_init(); | 1384 | cpu_cache_init(); |
1385 | tlb_init(); | 1385 | tlb_init(); |
1386 | #ifdef CONFIG_MIPS_MT_SMTC | 1386 | #ifdef CONFIG_MIPS_MT_SMTC |
1387 | } else if (!secondaryTC) { | ||
1388 | /* | ||
1389 | * First TC in non-boot VPE must do subset of tlb_init() | ||
1390 | * for MMU countrol registers. | ||
1391 | */ | ||
1392 | write_c0_pagemask(PM_DEFAULT_MASK); | ||
1393 | write_c0_wired(0); | ||
1387 | } | 1394 | } |
1388 | #endif /* CONFIG_MIPS_MT_SMTC */ | 1395 | #endif /* CONFIG_MIPS_MT_SMTC */ |
1389 | } | 1396 | } |