From: Michael Ellerman Date: Wed, 30 Apr 2008 03:21:45 +0000 (+1000) Subject: [POWERPC] Make emergency stack safe for current_thread_info() use X-Git-Tag: v2.6.26-rc1~108^2~1 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3243d87441bf7f97c5c9f7dd46b35f5783ec6740;p=pandora-kernel.git [POWERPC] Make emergency stack safe for current_thread_info() use The current_thread_info() macro, used by preempt_count(), assumes the base address and size of the stack are THREAD_SIZE aligned. The emergency stack currently isn't either of these things, which could potentially cause problems anytime we're running on the emergency stack. That includes when we detect a bad kernel stack pointer, and also during early_setup_secondary(). Signed-off-by: Michael Ellerman Signed-off-by: Paul Mackerras --- Reading git-diff-tree failed