From: Matt Evans Date: Thu, 12 Aug 2010 20:58:28 +0000 (+0000) Subject: powerpc: Initialise paca->kstack before early_setup_secondary X-Git-Tag: v2.6.36-rc3~37^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f761622e59433130bc33ad086ce219feee9eb961;p=pandora-kernel.git powerpc: Initialise paca->kstack before early_setup_secondary As early setup calls down to slb_initialize(), we must have kstack initialised before checking "should we add a bolted SLB entry for our kstack?" Failing to do so means stack access requires an SLB miss exception to refill an entry dynamically, if the stack isn't accessible via SLB(0) (kernel text & static data). It's not always allowable to take such a miss, and intermittent crashes will result. Primary CPUs don't have this issue; an SLB entry is not bolted for their stack anyway (as that lives within SLB(0)). This patch therefore only affects the init of secondaries. Signed-off-by: Matt Evans Cc: stable Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed