Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Inquiry:How to check for the CPU type ?

1,096 views
Skip to first unread message

hadi motamedi

unread,
Oct 11, 2009, 3:50:26 AM10/11/09
to
Dear All
Can you please do me favor and let me know how we can check for the
CPU type under VxWorks OS ? For the Linux OS , as you know , it can be
obtained from /proc/cpuinfo . Please let me know the equivalent from
the VxWorks OS .
Let me thank you in advance

hadi motamedi

unread,
Oct 11, 2009, 6:45:57 AM10/11/09
to

Dear All
Please be informed that I found on the Web that BSP declare a function
like sysInfo() or sysModel() that can be used for retreiving cpu
info . Can you please confirm if my understanding is right ?
Thank you in advance

PAD

unread,
Oct 13, 2009, 2:37:35 PM10/13/09
to
Hello,

Yes, sysModel() returns a string holding a BSP-specific string which
usually, but not always, provides the CPU type information:

-> printf "%s\n", sysModel()
PC PENTIUM4
value = 12 = 0xc

Note however that this CPU type is more about the processor
architecture than the actual microprocessor used on the board.

Cheers,

--
PAD

hadi motamedi

unread,
Oct 15, 2009, 2:17:19 AM10/15/09
to

Thank you very much for your reply . So is there any way to check for
the actual microprocessor used on the board ?
Thank you in advance

PAD

unread,
Oct 15, 2009, 3:18:43 PM10/15/09
to
On Oct 14, 11:17 pm, hadi motamedi <motamed...@gmail.com> wrote:
> Thank you very much for your reply . So is there any way to check for
> the actual microprocessor used on the board ?

Some processors, like the x86 family processors, have an ID that can
be programmatically checked but, AFAIK, VxWorks doe not provide
routines for this.

--
PAD

Michael R. Kesti

unread,
Oct 16, 2009, 9:15:29 PM10/16/09
to

Well, yes, they do. This is exactly what sysModel() is about. Sure,
sysModel() is crude and depends on BSP writers doing sensible things,
but that is still what it's about!

--
========================================================================
Michael Kesti | "And like, one and one don't make
| two, one and one make one."
mrkesti at hotmail dot com | - The Who, Bargain

0 new messages