]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
sh: Disable 4kB stacks when using PAGE_SIZE_64KB.
authorPaul Mundt <lethal@linux-sh.org>
Sat, 20 Sep 2008 11:16:35 +0000 (20:16 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Sat, 20 Sep 2008 11:16:35 +0000 (20:16 +0900)
commitb817f7e020958c8f79842076c137daa6f72eb366
treeb7e2b319b043584d6c4f621ad255130c28f63c26
parent2194478157127d52338be96ac9436dc54005816a
sh: Disable 4kB stacks when using PAGE_SIZE_64KB.

This combination triggers a divide by zero in kernel/fork.c when
calculating the initial max_threads value:

max_threads = mempages / (8 * THREAD_SIZE / PAGE_SIZE);

Simply disable 4K stacks on 64kB PAGE_SIZE to work around this,
as it's not a terribly useful combination to begin with.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/Kconfig.debug