Detect Multicore processors

Reply

Join Date: Apr 2009
Posts: 31
Reputation: group256 is an unknown quantity at this point 
Solved Threads: 1
group256 group256 is offline Offline
Light Poster

Detect Multicore processors

 
0
  #1
24 Days Ago
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.
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 134
Reputation: mathematician is an unknown quantity at this point 
Solved Threads: 3
mathematician mathematician is offline Offline
Junior Poster
 
0
  #2
24 Days Ago
Originally Posted by group256 View 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.

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
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 355
Reputation: gerard4143 is on a distinguished road 
Solved Threads: 45
gerard4143's Avatar
gerard4143 gerard4143 is offline Offline
Posting Whiz
 
0
  #3
24 Days Ago
Originally Posted by group256 View 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.
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
Reply With Quote Quick reply to this message  
Reply

Message:



Similar Threads
Other Threads in the Assembly Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC