]> git.baikalelectronics.ru Git - kernel.git/commit
m68k: always set stack frame format for ColdFire on thread start
authorGreg Ungerer <gerg@uclinux.org>
Wed, 12 Sep 2012 09:13:19 +0000 (05:13 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 1 Oct 2012 04:44:43 +0000 (00:44 -0400)
commit38cb1e5594c8767acdb8b90425e7f62767b692ee
tree9c83e715a057d418e77cd95377a780ec21d30bff
parentdead755c649edb061f9e73fcd37eceb5f7ff2fd2
m68k: always set stack frame format for ColdFire on thread start

The stack frame "format" field needs to be explicitly set on thread creation
on ColdFire. For a normal long word aligned user stack pointer the frame
format is 0x4.

We were doing this for non-MMU ColdFire, but not for the case with MMU enabled.
So fix it so we always do it if targeting ColdFire.

The old code happend to rely on the stack frame format being inhereted from
the process calling exec. Furture changes means that may not always work,
so we really do want to set it explicitly.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/m68k/include/asm/processor.h