How do I implement multicore processing in my assembly code?

Programming, for all ages and all languages.
Post Reply
ThatGuy2244
Posts: 15
Joined: Wed Feb 02, 2011 2:15 pm

How do I implement multicore processing in my assembly code?

Post by ThatGuy2244 »

How would I go about making a multicore os? I would like to know how to do a simple dual core program in real mode, I also use nasm as my assembler.
gerryg400
Member
Member
Posts: 1801
Joined: Thu Mar 25, 2010 11:26 pm
Location: Melbourne, Australia

Re: How do I implement multicore processing in my assembly c

Post by gerryg400 »

You can't.

Well, you can of course, anything is possible, but the commonly documented methods of starting and running the 2nd and subsequent cores all use 32 bit code. In particular there are tables and memory mapped registers that must be accessed that are outside the normal memory range of the processor running in real mode.
If a trainstation is where trains stop, what is a workstation ?
ThatGuy2244
Posts: 15
Joined: Wed Feb 02, 2011 2:15 pm

Re: How do I implement multicore processing in my assembly c

Post by ThatGuy2244 »

gerryg400 wrote:You can't.

Well, you can of course, anything is possible, but the commonly documented methods of starting and running the 2nd and subsequent cores all use 32 bit code. In particular there are tables and memory mapped registers that must be accessed that are outside the normal memory range of the processor running in real mode.
Ok so how would I do this in 32-bit mode then?
gerryg400
Member
Member
Posts: 1801
Joined: Thu Mar 25, 2010 11:26 pm
Location: Melbourne, Australia

Re: How do I implement multicore processing in my assembly c

Post by gerryg400 »

The Intel Multiprocessor Spec. will get you started.
If a trainstation is where trains stop, what is a workstation ?
ThatGuy2244
Posts: 15
Joined: Wed Feb 02, 2011 2:15 pm

Re: How do I implement multicore processing in my assembly c

Post by ThatGuy2244 »

gerryg400 wrote:The Intel Multiprocessor Spec. will get you started.
Ok I'll take a look at it thanks.
Post Reply