]> git.baikalelectronics.ru Git - kernel.git/commit
sparc64: Fix kernel thread stack termination.
authorDavid S. Miller <davem@davemloft.net>
Thu, 22 May 2008 01:14:28 +0000 (18:14 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 May 2008 01:14:28 +0000 (18:14 -0700)
commitfdd94791d67d8bb1e9d8f64981b386b56b128747
tree103159b2955bfe0fae8f0b63ef3193f20ef4436e
parent4645d90366542dc0c405a3b2d8437935a80d9410
sparc64: Fix kernel thread stack termination.

Because of the silly way I set up the initial stack for
new kernel threads, there is a loop at the top of the
stack.

To fix this, properly add another stack frame that is copied
from the parent and terminate it in the child by setting
the frame pointer in that frame to zero.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/kernel/process.c