DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 16th August 2016
Nureo Nureo is offline
Sam98
 
Join Date: May 2016
Posts: 24
Smile Do I have 32 bit or 64 bit?

Hello there!

How can anybody knows (by using a command) if you have a 64 bit or 32 bit hardware?

I am not asking about the Operative System architecture, but the hardware.

Thank you all!
Reply With Quote
  #2   (View Single Post)  
Old 16th August 2016
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

Your dmes(8) reports cpu(4) probe output. Look for the keyword "LONG" among the CPU feature set.
Reply With Quote
  #3   (View Single Post)  
Old 16th August 2016
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,319
Default

Quote:
Originally Posted by Nureo View Post
How can anybody knows (by using a command) if you have a 64 bit or 32 bit hardware?
$ dmesg | grep LONG
Reply With Quote
  #4   (View Single Post)  
Old 16th August 2016
Nureo Nureo is offline
Sam98
 
Join Date: May 2016
Posts: 24
Question

Well.

Quote:
$ dmesg | grep LONG
cpu0: FPU,V86 [...]
I assume that V86 is "64bit" architecture.

Quote:
$ dmesg
[...]
pchb0 at pci0 dev 0 function 0 "AMD AMD64 14h Host" rev 0x00
[...]
pchb1 at pci0 dev 24 function 0 "AMD AMD64 14h Link Cfg" rev 0x43
pchb2 at pci0 dev 24 function 1 "AMD AMD64 14h Address Map" rev 0x00
pchb3 at pci0 dev 24 function 2 "AMD AMD64 14h DRAM Cfg" rev 0x00
km0 at pci0 dev 24 function 3 "AMD AMD64 14h Misc Cfg" rev 0x00
pchb4 at pci0 dev 24 function 4 "AMD AMD64 14h CPU Power" rev 0x00
pchb5 at pci0 dev 24 function 5 "AMD AMD64 14h Reserved" rev 0x00
pchb6 at pci0 dev 24 function 6 "AMD AMD64 14h NB Power" rev 0x00
pchb7 at pci0 dev 24 function 7 "AMD AMD64 14h Reserved" rev 0x00
[...]
I shorted the answer, but there it says "AMD AMD64", so it is 64bit.
Reply With Quote
  #5   (View Single Post)  
Old 16th August 2016
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

Quote:
Originally Posted by Nureo View Post
I assume that V86 is "64bit" architecture.
LONG is 64-bit architecture.
Reply With Quote
  #6   (View Single Post)  
Old 16th August 2016
scottro's Avatar
scottro scottro is offline
Real Name: Scott Robbins
ISO Quartermaster
 
Join Date: Apr 2008
Location: NYC
Posts: 653
Default

uname -m will also show the architecture on most Unix and Unix-like systems, including OpenBSD.
Reply With Quote
  #7   (View Single Post)  
Old 16th August 2016
Nureo Nureo is offline
Sam98
 
Join Date: May 2016
Posts: 24
Question

But,
Quote:
uname -m
is to know the architecture of Operative System, not the hardware.

I am right?
Reply With Quote
  #8   (View Single Post)  
Old 16th August 2016
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,319
Default

Quote:
Originally Posted by Nureo View Post
I assume that V86 is "64bit" architecture.
No.

If "LONG" is found in the feature set of cpu0, then the Intel-like processor is capable of 64-bit instructions, & can potentially run OpenBSD's amd64 architecture. The fact that:

$ dmesg | grep LONG

...produced a match on cpu0 in the abbreviated output provided supports this claim. If you look towards the end of the matched line, you should find "LONG" listed.

If "LONG' is not in the processor's feature set, grep(4) will not display any output.
Reply With Quote
  #9   (View Single Post)  
Old 16th August 2016
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,319
Default

Quote:
Originally Posted by scottro View Post
uname -m will also show the architecture on most Unix and Unix-like systems, including OpenBSD.
scottro, the original question was on the hardware capabilities, not on the operating system installed.
Reply With Quote
Old 16th August 2016
scottro's Avatar
scottro scottro is offline
Real Name: Scott Robbins
ISO Quartermaster
 
Join Date: Apr 2008
Location: NYC
Posts: 653
Default

Ah, missed that, thanks.
Reply With Quote
Old 18th August 2016
Nureo Nureo is offline
Sam98
 
Join Date: May 2016
Posts: 24
Default

Hi! Here:

Quote:
$ dmesg | grep LONG
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,P GE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT ,NXE,MMXX,FFXSR,PAGE1GB,LONG,SSE3,MWAIT,SSSE3,CX16,POPCNT,LAHF,CMPLEG,SVM,EAPI CSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT,WDT,IT SC
It supports 64bit!

Thank you everybody! Thank you ocicat!
Reply With Quote
Reply

Tags
32bit, 64bit, architecture, hardware, openbsd


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:14 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick