flat assembler
Message board for the users of flat assembler.

flat assembler > OS Construction > Use multiprocessoring

Author
Thread Post new topic Reply to topic
Fulgurance



Joined: 27 Nov 2017
Posts: 37
Hello, i have just one question, how is it possible in assembly to use multiprocessoring ? Have you got simple example ?
Post 31 Jul 2018, 07:52
View user's profile Send private message Reply with quote
DimonSoft



Joined: 03 Mar 2010
Posts: 362
Location: Belarus
Depends on what you mean by “multiprocessoring”, i.e. what particular task you’re trying to solve.
Post 31 Jul 2018, 10:33
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 15971
Location: Spacecraft Planet Earth
If you are using an existing OS then you can use the threading APIs to get other threads running.

Then there are the synchronisation APIs you can use to get things happening in the sequence you need.
Post 31 Jul 2018, 10:50
View user's profile Send private message Visit poster's website Reply with quote
Fulgurance



Joined: 27 Nov 2017
Posts: 37
No, its about os construction.

For example, i would like to use first core or my processor to launch 16bits code, and use second to launch 64bits code.

Is it possible ?
Post 31 Jul 2018, 19:57
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 15971
Location: Spacecraft Planet Earth
Moved to "OS Construction"
Post 31 Jul 2018, 20:05
View user's profile Send private message Visit poster's website Reply with quote
cod3b453



Joined: 25 Aug 2004
Posts: 620
This topic may help: https://board.flatassembler.net/topic.php?p=108312

You have to send inter-processor interrupts (IPI) to the other cores, which requires that interrupts are properly set up for IO APIC, which in turn requires either the multi-processor (MP) table information from BIOS or (if I remember correctly) the later x2APIC and ACPI tables.
Post 01 Aug 2018, 02:09
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2018, Tomasz Grysztar.

Powered by rwasa.