Skip to contentSkip to conversation

save a cyle in LOAD_PTE asm macro

PATCH New Florian Lohoff 1 participant 1 message Jan 28, 2001 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 save a cyle in LOAD_PTE asm macro

Hi,
shouldnt the srl at least stall for a cycle on interlocked CPUs ?

Index: arch/mips/kernel/r4k_misc.S
===================================================================
RCS file: /cvs/linux/arch/mips/kernel/r4k_misc.S,v retrieving revision 1.10

mips/kernel/r4k_misc.S +1 -1
diff -u -r1.10 r4k_misc.S
@@ -37,8 +37,8 @@
 	 */
 #define LOAD_PTE(pte, ptr) \
 	mfc0	pte, CP0_BADVADDR; \
-	srl	pte, pte, 22; \
 	lw	ptr, current_pgd; \
+	srl	pte, pte, 22; \
 	sll	pte, pte, 2; \
 	addu	ptr, ptr, pte; \
 	mfc0	pte, CP0_BADVADDR; \
Signature · 2 lines
Florian Lohoff                  [email protected]             +49-5201-669912
     Why is it called "common sense" when nobody seems to have any?