On 2010-11-14, Nick Guenther <[email protected]> wrote: > Okay, stupid question time: how do I figure out if my CPU is 64 or 32 > bit on OpenBSD? > > dmesg and `sysctl hw` tell me the same thing: > $ sysctl hw > hw.machine=i386 > hw.model=Genuine Intel(R) CPU U7300 @ 1.30GHz ("GenuineIntel" 686-class) > ... > > The googles do nothing for "U7300". I mean, I suppose it probably is > 64 bit (Google does find pages selling laptops with this cpu and 4gigs > of ram so presumably..), but what's the process here normally? Try to > install amd64 and if that breaks you know you don't have a 64 bit > machine?
basically, yes. there is a way to test for 64-bit mode via cpuid flags, we test it in amd64 kernels (the flag LONG is printed in the cpu attach line there) but I suspect the flag holding it has different meanings depending on the type of cpu, so it's probably not a good idea to do the same thing in an i386 kernel which could be run on many more types of unusual cpu. _______________________________________________ Openbsd-newbies mailing list [email protected] http://mailman.theapt.org/listinfo/openbsd-newbies
