]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/ppc32: Fix the bug in the init of non-base exception stack for UP
authorKevin Hao <haokexin@gmail.com>
Wed, 29 Jan 2014 10:24:54 +0000 (18:24 +0800)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 11 Feb 2014 00:24:52 +0000 (11:24 +1100)
commit604708217b465b9c7c0c43dfd0dc5e2cca035183
tree978ef5b7e571284ed25a263354a7ee41de089e60
parente754dbd8beff14d9610aa6caaadf3a65809bacc8
powerpc/ppc32: Fix the bug in the init of non-base exception stack for UP

We would allocate one specific exception stack for each kind of
non-base exceptions for every CPU. For ppc32 the CPU hard ID is
used as the subscript to get the specific exception stack for
one CPU. But for an UP kernel, there is only one element in the
each kind of exception stack array. We would get stuck if the
CPU hard ID is not equal to '0'. So in this case we should use the
subscript '0' no matter what the CPU hard ID is.

Signed-off-by: Kevin Hao <haokexin@gmail.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/irq.c
arch/powerpc/kernel/setup_32.c