]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sparc64: Fix stack debugging IRQ stack regression.
authorDavid S. Miller <davem@davemloft.net>
Wed, 9 Dec 2009 09:43:45 +0000 (01:43 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 18 Dec 2009 21:44:09 +0000 (13:44 -0800)
commit2b8d879954ca74e594fe17e30c2ea3a2b4ec893b
treee18bb9efa07455a84b9f8e772920613e596ac771
parentec5e87a33f85e49acde6ee737c27d48595dd456a
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