linux/arch/powerpc/include
Oliver O'Halloran 88481a2c40 powerpc/asm: Mark cr0 as clobbered in mftb()
commit 2400fd822f upstream.

The workaround for the CELL timebase bug does not correctly mark cr0 as
being clobbered. This means GCC doesn't know that the asm block changes cr0 and
might leave the result of an unrelated comparison in cr0 across the block, which
we then trash, leading to basically random behaviour.

Fixes: 859deea949 ("[POWERPC] Cell timebase bug workaround")
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
[mpe: Tweak change log and flag for stable]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2017-07-27 15:08:00 -07:00
..
asm powerpc/asm: Mark cr0 as clobbered in mftb() 2017-07-27 15:08:00 -07:00
uapi/asm KVM: PPC: Book3S HV: Save/restore XER in checkpointed register state 2017-01-09 08:32:22 +01:00