From: Paul Mundt Date: Sat, 20 Sep 2008 11:16:35 +0000 (+0900) Subject: sh: Disable 4kB stacks when using PAGE_SIZE_64KB. X-Git-Tag: v2.6.28-rc1~99^2~38 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b817f7e020958c8f79842076c137daa6f72eb366;p=pandora-kernel.git 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 --- Reading git-diff-tree failed