Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1457052 > unrolled thread

[PATCH] powerpc/40x: Clear MSR_DR in one insn instead of two

Started byChristophe Leroy <christophe.leroy@c-s.fr>
First post2016-08-05 14:00 +0200
Last post2016-08-05 14:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] powerpc/40x: Clear MSR_DR in one insn instead of two Christophe Leroy <christophe.leroy@c-s.fr> - 2016-08-05 14:00 +0200

#1457052 — [PATCH] powerpc/40x: Clear MSR_DR in one insn instead of two

FromChristophe Leroy <christophe.leroy@c-s.fr>
Date2016-08-05 14:00 +0200
Subject[PATCH] powerpc/40x: Clear MSR_DR in one insn instead of two
Message-ID<s2LXc-72j-17@gated-at.bofh.it>
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
---
 arch/powerpc/kernel/misc_32.S | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/arch/powerpc/kernel/misc_32.S b/arch/powerpc/kernel/misc_32.S
index d9c912b..e025230 100644
--- a/arch/powerpc/kernel/misc_32.S
+++ b/arch/powerpc/kernel/misc_32.S
@@ -243,8 +243,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
@@ -261,8 +260,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
-- 
2.1.0

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web