Skip to contentSkip to conversation

sparc32: drop prom version check in head_32.S

PATCH In review Sam Ravnborg 1 participant 1 message May 12, 2012 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore
#0 lore raw

PATCH 2/4 sparc32: drop prom version check in head_32.S

We already sorted out if we are a sun4/sun4c and halted. So no need to check the prom version as we know this is a v2 or v3 as sun4m, sun4d etc. does not use a v1 prom.

---
 arch/sparc/kernel/head_32.S |   13 -------------
 1 files changed, 0 insertions(+), 13 deletions(-)
arch/sparc/kernel/head_32.S +0 -13
index 10830b5..56e32a2 100644
@@ -675,19 +675,6 @@ execute_in_high_mem:
 		sethi	%hi(linux_dbvec), %g1
 		st	%o1, [%g1 + %lo(linux_dbvec)]
 
-		ld	[%o0 + 0x4], %o3
-		and	%o3, 0x3, %o5			! get the version
-
-		cmp	%o3, 0x2			! a v2 prom?
-		be	found_version
-		 nop
-
-		/* [email protected] */
-		cmp	%o3, 0x3			! a v3 prom?
-		be	found_version
-		 nop
-
-found_version:
 /* Get the machine type via the mysterious romvec node operations. */
 
 		add	%g7, 0x1c, %l1		
Signature · 1 line
1.6.0.6