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
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
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
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
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