]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/lib: Add alt patching test of branching past the last instruction
authorMichael Ellerman <mpe@ellerman.id.au>
Mon, 16 Apr 2018 14:39:05 +0000 (00:39 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 11 May 2018 13:29:03 +0000 (23:29 +1000)
commit21d3279ee0a4f2460d6258c4ea2bb4d39688dc6d
tree4ac69bbbda49b8975863df88893a370c0a7b8e0c
parentb2fe4e6b7ff9a8c2826cca05e7c00c80bb08a98a
powerpc/lib: Add alt patching test of branching past the last instruction

Add a test of the relative branch patching logic in the alternate
section feature fixup code. This tests that if we branch past the last
instruction of the alternate section, the branch is not patched.
That's because the assembler will have created a branch that already
points to the first instruction after the patched section, which is
correct and needs no further patching.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/lib/feature-fixups-test.S
arch/powerpc/lib/feature-fixups.c