]> 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)
commit701657a83e48a7ac692d60b778cab15ba6b0c522
tree978ef5b7e571284ed25a263354a7ee41de089e60
parentd36bbf0ec79affcac5797c11ee596b44c048f4e1
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