From owner-freebsd-alpha Wed May 10 18:18:28 2000 Delivered-To: freebsd-alpha@freebsd.org Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by hub.freebsd.org (Postfix) with ESMTP id 94CFF37BAB2 for ; Wed, 10 May 2000 18:18:25 -0700 (PDT) (envelope-from gallatin@cs.duke.edu) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.9.3/8.9.3) with ESMTP id VAA15306; Wed, 10 May 2000 21:18:24 -0400 (EDT) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.9.3/8.9.1) id VAA84363; Wed, 10 May 2000 21:18:24 -0400 (EDT) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Wed, 10 May 2000 21:17:52 -0400 (EDT) To: Brett Bump Cc: freebsd-alpha@freebsd.org Subject: Re: 3300/3305 and 5300/5305 Problems In-Reply-To: <391A031A.4CB8509A@mail.enetis.net> References: <39148C07.E97DCEAF@mail.enetis.net> <14614.49806.293997.4055@grasshopper.cs.duke.edu> <3918CBC5.C9495F35@mail.enetis.net> <14617.22897.113127.677981@grasshopper.cs.duke.edu> <391A031A.4CB8509A@mail.enetis.net> X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs Lucid Message-ID: <14618.1978.586094.137060@grasshopper.cs.duke.edu> Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Brett Bump writes: > > Um...does this look like what I think it looks like? To me it looks like something that makes sense! I remember hearing that the whitebox numbers were negative.. Try this: Index: sys/alpha/alpha/machdep.c =================================================================== RCS file: /home/ncvs/src/sys/alpha/alpha/machdep.c,v retrieving revision 1.68 diff -u -r1.68 machdep.c --- sys/alpha/alpha/machdep.c 2000/02/29 08:48:08 1.68 +++ sys/alpha/alpha/machdep.c 2000/05/11 01:16:06 @@ -740,6 +740,14 @@ * Find out what hardware we're on, and do basic initialization. */ cputype = hwrpb->rpb_type; + if (cputype < 0) { + /* + * At least some white-box systems have SRM which + * reports a systype that's the negative of their + * blue-box counterpart. + */ + cputype = -cputype; + } if (cputype >= ncpuinit) { platform_not_supported(cputype); /* NOTREACHED */ Cheers, Drew ------------------------------------------------------------------------------ Andrew Gallatin, Sr Systems Programmer http://www.cs.duke.edu/~gallatin Duke University Email: gallatin@cs.duke.edu Department of Computer Science Phone: (919) 660-6590 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message