944,155 Members | Top Members by Rank

Ad:
  • Assembly Discussion Thread
  • Unsolved
  • Views: 881
  • Assembly RSS
Nov 5th, 2009
0

Detect Multicore processors

Expand Post »
Hey everyone,

For my project, I need to write an assembly/C code to detect multiprocessors. I really have no idea how as I have barely done assembly coding and I have no good reference or even idea how to start. Again, what I am going to do is, I'm trying to find how many processors on dual core or quad core chips there are and detect them and later on use them. Please help me out here.

Thanks a lot.
Similar Threads
Reputation Points: 7
Solved Threads: 22
Junior Poster
group256 is offline Offline
182 posts
since Apr 2009
Nov 5th, 2009
0
Re: Detect Multicore processors
Click to Expand / Collapse  Quote originally posted by group256 ...
Hey everyone,

For my project, I need to write an assembly/C code to detect multiprocessors. I really have no idea how as I have barely done assembly coding and I have no good reference or even idea how to start. Again, what I am going to do is, I'm trying to find how many processors on dual core or quad core chips there are and detect them and later on use them. Please help me out here.

Thanks a lot.

That is the kind of thing an operating system would do at boot time; I am not sure how a normal application program would do it. An OS would probably do it either by looking at the ACPI tables or else by making use of the multi-processor specification:

http://www.intel.com/design/pentium/...s/24201606.pdf
Reputation Points: 14
Solved Threads: 4
Junior Poster
mathematician is offline Offline
149 posts
since Nov 2006
Nov 5th, 2009
0
Re: Detect Multicore processors
Click to Expand / Collapse  Quote originally posted by group256 ...
Hey everyone,

For my project, I need to write an assembly/C code to detect multiprocessors. I really have no idea how as I have barely done assembly coding and I have no good reference or even idea how to start. Again, what I am going to do is, I'm trying to find how many processors on dual core or quad core chips there are and detect them and later on use them. Please help me out here.

Thanks a lot.
Can you use the opcode cpuid to query the functionality of the processor because I'm looking at the AMD doc's and cpuid provides Logical processor count
Reputation Points: 499
Solved Threads: 367
Postaholic
gerard4143 is offline Offline
2,198 posts
since Jan 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Assembly Forum Timeline: Beginner SPIM Array help
Next Thread in Assembly Forum Timeline: divide overflow problem





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC