From 5fe7a8a85cdf6ce438aed91706b30c0c4ebaecf9 Mon Sep 17 00:00:00 2001 From: uwe Date: Sat, 28 Jun 2003 00:59:09 +0000 Subject: [PATCH] Only JavaStations have OFW, so set cpu type to CPU_SUN4M in is_openfirm. --- sys/arch/sparc/stand/common/srt0.S | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/arch/sparc/stand/common/srt0.S b/sys/arch/sparc/stand/common/srt0.S index a97c5b478311..3da8e00c84c5 100644 --- a/sys/arch/sparc/stand/common/srt0.S +++ b/sys/arch/sparc/stand/common/srt0.S @@ -1,4 +1,4 @@ -/* $NetBSD: srt0.S,v 1.7 2001/11/21 21:38:00 uwe Exp $ */ +/* $NetBSD: srt0.S,v 1.8 2003/06/28 00:59:09 uwe Exp $ */ /*- * Copyright (c) 1999 The NetBSD Foundation, Inc. @@ -161,6 +161,8 @@ start: b,a is_sun4cm is_openfirm: + ! only javastations have OFW, so we know it is a sun4m + mov CPU_SUN4M, %g4 ! save address of OpenFirmware client interface handler sethi %hi(_C_LABEL(romp)), %o1 st %i3, [%o1 + %lo(_C_LABEL(romp))]