powerpc/book3s: Fix CFAR clobbering issue in machine check handler.
authorMahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
Tue, 11 Mar 2014 05:26:18 +0000 (10:56 +0530)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sun, 23 Mar 2014 23:16:09 +0000 (10:16 +1100)
commitd410ae2126481a74bc5be4a6242c4a232c19a984
tree87e14bf51dfa65e3eac3f53528fb6036b0f46de6
parent422b9b9684db3c511e65c91842275c43f5910ae9
powerpc/book3s: Fix CFAR clobbering issue in machine check handler.

While checking powersaving mode in machine check handler at 0x200, we
clobber CFAR register. Fix it by saving and restoring it during beq/bgt.

Signed-off-by: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/exception-64s.h
arch/powerpc/kernel/exceptions-64s.S