On 2010 Nov 14 (Sun) at 15:01:00 +0000 (+0000), Stuart Henderson wrote:
: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.
:

If the cpu supports it, LONG is always printed in the CPU flags for both
i386 and amd64 kernels these days.  The other thing the OP can try, is
just booting an amd64 bsd.rd kernel, and see if it boots. It fails
extremely early on i386 only systems. 


-- 
Miss, n.:
        A title with which we brand unmarried women to indicate that
        they are in the market.
                -- Ambrose Bierce, "The Devil's Dictionary"
_______________________________________________
Openbsd-newbies mailing list
[email protected]
http://mailman.theapt.org/listinfo/openbsd-newbies

Reply via email to