Date: Wed, 10 May 2000 21:17:52 -0400 (EDT) From: Andrew Gallatin <gallatin@cs.duke.edu> To: Brett Bump <bbump@mail.enetis.net> Cc: freebsd-alpha@freebsd.org Subject: Re: 3300/3305 and 5300/5305 Problems Message-ID: <14618.1978.586094.137060@grasshopper.cs.duke.edu> In-Reply-To: <391A031A.4CB8509A@mail.enetis.net> References: <Pine.LNX.4.10.10005061257280.19862-100000@server.engec.com.br> <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>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14618.1978.586094.137060>