From 5eb6c1d31d9ae99c3a273c38fa757a7dce7729cf Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Thu, 25 Oct 2007 05:19:56 +0000 Subject: another case of product encoding is "Sun (TM) modelname", on the E250 --- sys/arch/sparc64/sparc64/autoconf.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sys/arch') diff --git a/sys/arch/sparc64/sparc64/autoconf.c b/sys/arch/sparc64/sparc64/autoconf.c index 772465ae151..3e55335ed91 100644 --- a/sys/arch/sparc64/sparc64/autoconf.c +++ b/sys/arch/sparc64/sparc64/autoconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: autoconf.c,v 1.71 2007/10/17 21:23:28 kettenis Exp $ */ +/* $OpenBSD: autoconf.c,v 1.72 2007/10/25 05:19:55 deraadt Exp $ */ /* $NetBSD: autoconf.c,v 1.51 2001/07/24 19:32:11 eeh Exp $ */ /* @@ -692,6 +692,9 @@ extern bus_space_tag_t mainbus_space_tag; if ((strncmp(hw_vendor, "SUNW,", 5)) == 0) { p = hw_prod = hw_vendor + 5; hw_vendor = "Sun"; + } else if ((strncmp(hw_vendor, "Sun (TM) ", 9)) == 0) { + p = hw_prod = hw_vendor + 9; + hw_vendor = "Sun"; } else if ((p = memchr(hw_vendor, ' ', len)) != NULL) { *p = '\0'; hw_prod = ++p; -- cgit v1.2.3