]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64s: Exception macro for stack frame and initial register save
authorNicholas Piggin <npiggin@gmail.com>
Mon, 19 Dec 2016 18:30:03 +0000 (04:30 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 28 Apr 2017 11:02:25 +0000 (21:02 +1000)
commitb8fcdeda8333a0ab3141dc62b5cd0e12ddef093d
treeb5e8a1e65a1bce277f6d27f3233a224360da94a3
parent71d7777ddc429b66fa24ef283eecfcd6d3f8a459
powerpc/64s: Exception macro for stack frame and initial register save

This code is common to a few exceptions, and another user will be added.
This causes a trivial change to generated code:

-     604: std     r9,416(r1)
-     608: mfspr   r11,314
-     60c: std     r11,368(r1)
-     610: mfspr   r12,315
+     604: mfspr   r11,314
+     608: mfspr   r12,315
+     60c: std     r9,416(r1)
+     610: std     r11,368(r1)

machine_check_powernv_early could also use this, but that requires non
trivial changes to generated code, so that's for another patch.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/exception-64s.h
arch/powerpc/kernel/exceptions-64s.S