]> git.kernelconcepts.de Git - karo-tx-linux.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)
commita4087a4d38981bef3de7dd814493df202919cd2e
treeb5e8a1e65a1bce277f6d27f3233a224360da94a3
parent83a980f7f4769c0673f0f966350d1db26993a193
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