Page 1 of 1
AMD 64 SMP
Posted: Fri Mar 24, 2006 12:00 am
by yaocong
I would like to support SMP(multi-processors) in my kernel in amd64 paltform.
I would like to know that if SMP in amd64 is same as in IA-32 platform?
Could anybody give me a hint?
Thank you very much!
Re: AMD 64 SMP
Posted: Sat Mar 25, 2006 12:00 am
by xenos
My OS also supports AMD 64 SMP and the SMP detection and startup works exactly the same as on IA-32 SMP, at least before enabling long mode. It detects the MP config table, determines the number of processors and boots them up via IPI. Then they are switched to long mode.
The APICs and IPIs also work almost the same way as on IA-32, except that in long mode interrupt handling is different, of course.
For testing this you can use the free AMD SimNow! emulator which runs on a AMD 64 UP and simulates both UP and SMP machines.
Re: AMD 64 SMP
Posted: Sat Mar 25, 2006 12:00 am
by yaocong
thank you very much.
Actually ,I do not know how to use SMP in IA-32 or AMD64 Platform. ^-^
If there was any source code that can run rightly,I would be very appreciated ! ^_^
Re: AMD 64 SMP
Posted: Sat Mar 25, 2006 12:00 am
by xenos
The most important thing to read is the multiprocessor specification:
http://www.intel.com/design/pentium/datashts/242016.htm
It covers the basic SMP detection and initialization. I also have some code on this and I'll upload it as soon as I find the time to put it in a clean form and maybe comment it...
Re: AMD 64 SMP
Posted: Sun Mar 26, 2006 12:00 am
by yaocong
Thank you again,
And IF you had uploaded it,please notify me by replying a post to this topic "AMD 64 SMP".
Thanks guy!