sparc64: Fix stack debugging IRQ stack regression.
authorDavid S. Miller <davem@davemloft.net>
Wed, 9 Dec 2009 09:43:45 +0000 (01:43 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Dec 2009 09:43:45 +0000 (01:43 -0800)
commit166e553a575f09485f6d0df8a1ef3c5991f7d953
tree632e93d62c1d62d23f23e0c2a96b5270cbebd933
parent4230fa3b89ea1c413766bd411a8315a3d05aa6c7
sparc64: Fix stack debugging IRQ stack regression.

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>
arch/sparc/lib/mcount.S