On my amd64 enabled laptop:
$ sysctl hw.machine
hw.machine=amd64
$
You can also check, using file(1), to see what the binaries are compiled
as. This is reliable since we do not support running 32-bit binaries on
a 64bit kernel.
$ file /bin/ls
/bin/ls: ELF 64-bit LSB executable, x86-64, version 1, for OpenBSD,
statically linked, stripped
$
On 2010 Nov 14 (Sun) at 01:18:45 -0500 (-0500), Nick Guenther 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?
:
:-Nick
:_______________________________________________
:Openbsd-newbies mailing list
:[email protected]
:http://mailman.theapt.org/listinfo/openbsd-newbies
--
Any father who thinks he's all important should remind himself that
this country honors fathers only one day a year while pickles get a
whole week.
_______________________________________________
Openbsd-newbies mailing list
[email protected]
http://mailman.theapt.org/listinfo/openbsd-newbies