sparc64: Fix stack debugging IRQ stack regression.
commit6ec683e0dc39688557189eed2153367d0acf61e2
authorDavid S. Miller <davem@davemloft.net>
Wed, 9 Dec 2009 09:43:45 +0000 (9 01:43 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 18 Dec 2009 22:05:12 +0000 (18 14:05 -0800)
tree3046ebeacca53a8c322293a4e68d02985ac9e311
parentc141dab88c2afe8a1d43b64f55db11523cc4ec2d
sparc64: Fix stack debugging IRQ stack regression.

[ Upstream commit 166e553a575f09485f6d0df8a1ef3c5991f7d953 ]

Commit 4f70f7a91bffdcc39f088748dc678953eb9a3fbd
(sparc64: Implement IRQ stacks.) has two bugs.

First, the softirq range check forgets to subtract STACK_BIAS
before comparing with %sp.  Next, on failure the wrong label
is jumped to, resulting in a bogus stack being loaded.

Reported-by: Igor Kovalenko <igor.v.kovalenko@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/sparc/lib/mcount.S