]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Index crit/dbg/mcheck stacks using cpu number on 64bit
authorMichael Ellerman <michael@ellerman.id.au>
Thu, 14 Apr 2011 22:32:04 +0000 (22:32 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 27 Apr 2011 03:02:12 +0000 (13:02 +1000)
commit4012d5c88452c19755b2b0b1a964e3099eaf762b
tree7f13926387411e9fe4a8e1bf9a0423f793fad793
parent323d8a4eb81372b8d1d1c90b91d2689666f58282
powerpc: Index crit/dbg/mcheck stacks using cpu number on 64bit

In exc_lvl_ctx_init() we index into the crit/dbg/mcheck stacks using
the hard cpu id, but that assumes the hard cpu id is zero based and
contiguous. That is not the case on A2.

The root of the problem is that the 32bit code has no equivalent of the
paca to allow it to do the hard->soft mapping in assembler. Until the
32bit code is updated to handle that, index the stacks using the soft
cpu ids on 64bit and hard on 32 bit.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/irq.c