From: Bernd Schmidt Date: Tue, 22 Apr 2008 23:17:34 +0000 (+0800) Subject: [Blackfin] arch: fix bug - when using trace buffer with CONFIG_MPU enabled. X-Git-Tag: v2.6.26-rc1~1085^2~68 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a0c4fdb6602ea066380aaf71ff7bb2f61ffeee8;p=pandora-kernel.git [Blackfin] arch: fix bug - when using trace buffer with CONFIG_MPU enabled. There were a couple of problems with the way the trace buffer state is saved/restored in assembly. The DEBUG_HWTRACE_SAVE/RESTORE macros save a value to the stack, which is not immediately obvious; the CPLB exception code needed changes to load the correct value of the stack pointer. The other problem is that the SAVE/RESTORE macros weren't pushing and popping the value downwards on the stack, but rather moving it _upwards_, which is of course completely broken. We also need to make sure there's a matching DEBUG_HWTRACE_RESTORE in the error case of the CPLB handler. Signed-off-by: Bernd Schmidt Signed-off-by: Bryan Wu --- Reading git-diff-tree failed