]> 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)
commit1f7fcaf09e47eaad205d75d2e6c73efb1ed18096
treeb5e8a1e65a1bce277f6d27f3233a224360da94a3
parent18063a6e3cba631a5ea6f3c4a58db068d69b36d6
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