summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2007-10-25 05:19:56 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2007-10-25 05:19:56 +0000
commit5eb6c1d31d9ae99c3a273c38fa757a7dce7729cf (patch)
tree4f28ebff9575d921c650485cc043173223a62a2c
parent9b97efbfff76a3ed901670517eeac6e92bbbbe40 (diff)
another case of product encoding is "Sun (TM) modelname", on the E250
-rw-r--r--sys/arch/sparc64/sparc64/autoconf.c5
1 files changed, 4 insertions, 1 deletions
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;