sparc64: Fix recursion in stack overflow detection handling.
authorDavid S. Miller <davem@davemloft.net>
Tue, 12 Aug 2008 09:03:49 +0000 (02:03 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Aug 2008 09:03:49 +0000 (02:03 -0700)
commitc7498081a6f5d96c9f3243b6b5e020352903bfd2
treef23d27a2c973d0b0542f84cdd0b39be5e4ba406d
parentc6ed413ddcfb66e9d3e1318060271391c7659dd3
sparc64: Fix recursion in stack overflow detection handling.

The calls down into prom_printf() when we detect an overflowed stack
can recurse again since the overflow stack will be "below" the current
kernel stack limit.

Prevent this by just returning straight if we are on the stack
overflow safe stack already.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/lib/mcount.S