]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/kernel: Check features don't change after patching
authorMichael Ellerman <mpe@ellerman.id.au>
Tue, 26 Jul 2016 12:29:18 +0000 (22:29 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 1 Aug 2016 01:14:56 +0000 (11:14 +1000)
commit64797826d2c256dd39b8a441c673ddb57b49210d
tree954cdde1913d243e517596aab5718dfa65fcd800
parentef84a3ee8da95a8e940dacfab69f824050bbd995
powerpc/kernel: Check features don't change after patching

Early in boot we binary patch some sections of code based on the CPU and
MMU feature bits. But it is a one-time patching, there is no facility
for repatching the code later if the set of features change.

It is a major bug if the set of features changes after we've done the
code patching - so add a check for it.

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