diff options
author | Daniel Hellstrom <daniel@gaisler.com> | 2011-04-21 04:20:25 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-04-21 16:44:45 -0700 |
commit | 970def654e9df1ad28ddb466bb1d123a55e1e7e7 (patch) | |
tree | 03a4ba50b79cbe40c6f37219026fe9cecb596f40 /arch/sparc/kernel/leon_smp.c | |
parent | 01dae0f08dddf6ba86f956e60dceee4968f7a555 (diff) | |
download | blackbird-op-linux-970def654e9df1ad28ddb466bb1d123a55e1e7e7.tar.gz blackbird-op-linux-970def654e9df1ad28ddb466bb1d123a55e1e7e7.zip |
sparc32,leon: don't rely on bootloader to mask IRQs
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel/leon_smp.c')
-rw-r--r-- | arch/sparc/kernel/leon_smp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/sparc/kernel/leon_smp.c b/arch/sparc/kernel/leon_smp.c index cbd8e31d01ff..de9506d9ad7d 100644 --- a/arch/sparc/kernel/leon_smp.c +++ b/arch/sparc/kernel/leon_smp.c @@ -217,6 +217,10 @@ int __cpuinit leon_boot_one_cpu(int i) (unsigned int)&leon3_irqctrl_regs->mpstatus); local_flush_cache_all(); + /* Make sure all IRQs are of from the start for this new CPU */ + LEON_BYPASS_STORE_PA(&leon3_irqctrl_regs->mask[i], 0); + + /* Wake one CPU */ LEON_BYPASS_STORE_PA(&(leon3_irqctrl_regs->mpstatus), 1 << i); /* wheee... it's going... */ |