mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-13 09:20:17 +00:00
powerpc/40x: Clear MSR_DR in one insn instead of two
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
parent
92aa2fe039
commit
362957c27e
@ -244,8 +244,7 @@ _GLOBAL(_nmask_and_or_msr)
|
||||
*/
|
||||
_GLOBAL(real_readb)
|
||||
mfmsr r7
|
||||
ori r0,r7,MSR_DR
|
||||
xori r0,r0,MSR_DR
|
||||
rlwinm r0,r7,0,~MSR_DR
|
||||
sync
|
||||
mtmsr r0
|
||||
sync
|
||||
@ -262,8 +261,7 @@ _GLOBAL(real_readb)
|
||||
*/
|
||||
_GLOBAL(real_writeb)
|
||||
mfmsr r7
|
||||
ori r0,r7,MSR_DR
|
||||
xori r0,r0,MSR_DR
|
||||
rlwinm r0,r7,0,~MSR_DR
|
||||
sync
|
||||
mtmsr r0
|
||||
sync
|
||||
|
Loading…
x
Reference in New Issue
Block a user