diff options
author | Oliver O'Halloran <oohall@gmail.com> | 2017-07-06 18:46:43 +1000 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2017-10-12 15:28:04 +0100 |
commit | 0ad934334c03a5313efb8f433558bf4d84b56920 (patch) | |
tree | f2c687ef3e9939d896caa33af05d4b7affe94783 /arch/mips | |
parent | 6c49ba2f8694c911884e592964f2d05273d8a4c8 (diff) | |
download | linux-stable-0ad934334c03a5313efb8f433558bf4d84b56920.tar.gz linux-stable-0ad934334c03a5313efb8f433558bf4d84b56920.tar.bz2 linux-stable-0ad934334c03a5313efb8f433558bf4d84b56920.zip |
powerpc/asm: Mark cr0 as clobbered in mftb()
commit 2400fd822f467cb4c886c879d8ad99feac9cf319 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: 859deea949c3 ("[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: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'arch/mips')
0 files changed, 0 insertions, 0 deletions