From: Tiejun Chen Date: Sun, 16 Sep 2012 23:54:30 +0000 (+0000) Subject: powerpc/kprobe: Complete kprobe and migrate exception frame X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~10^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9c4e541ea9b22944da356f2a9258b4eddcc953b;p=pandora-kernel.git powerpc/kprobe: Complete kprobe and migrate exception frame We can't emulate stwu since that may corrupt current exception stack. So we will have to do real store operation in the exception return code. Firstly we'll allocate a trampoline exception frame below the kprobed function stack and copy the current exception frame to the trampoline. Then we can do this real store operation to implement 'stwu', and reroute the trampoline frame to r1 to complete this exception migration. Signed-off-by: Tiejun Chen Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed