]> err.no Git - linux-2.6/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)
commita051bc5bb1ac6dc138d529077fa20cbbc6622d95
tree103159b2955bfe0fae8f0b63ef3193f20ef4436e
parent3651751fff44ede58f65cbb1e39242139ead251b
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