Skip to contentSkip to conversation

: c-r4k.c 2/7 micro prid optimization

PATCH New Juan Quintela 1 participant 1 message Mar 28, 2003 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 : c-r4k.c 2/7 micro prid optimization

Hi
prid is only used during init.

Later, Juan.

 build/arch/mips/mm/c-r4k.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)
build/arch/mips/mm/c-r4k.c renamed from build/arch/mips/mm/c-r4k.c~c-r4k_move_prid_call +2 -1
diff -puN build/arch/mips/mm/c-r4k.c~c-r4k_move_prid_call build/arch/mips/mm/c-r4k.c
@@ -45,7 +45,7 @@ static unsigned long scache_size, sc_lsi
 
 static void r4k_blast_dcache_page(unsigned long addr)
 {
-	unsigned int prid = read_c0_prid() & 0xfff0;
+	unsigned int prid;
 	static void *l = &&init;
 
 	goto *l;
@@ -74,6 +74,7 @@ dc_32_r4600:
 	}
 
 init:
+	prid = read_c0_prid() & 0xfff0;
 	if (prid == 0x2010)			/* R4600 V1.7 */
 		l = &&dc_32_r4600;
 	else if (dc_lsize == 16)

_

Signature · 2 lines
In theory, practice and theory are the same, but in practice they 
are different -- Larry McVoy