flat assembler
Message board for the users of flat assembler.

Index > OS Construction > SMP/APIC

Author
Thread Post new topic Reply to topic
narada



Joined: 15 Feb 2008
Posts: 77
Location: Ukraine, Dnepropetrovsk
narada
Anyone working with SMP? (With asm/fasm). may be code examples????????????????????????????????????????

_________________
http://www.omegicus.com
Post 19 Jan 2009, 14:05
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17247
Location: In your JS exploiting you and your system
revolution
Perhaps you would get a better response from the OS construction forum. There may even be some hobby OS that has already implemented multi-CPU detection and control with code that you can download?
Post 19 Jan 2009, 20:30
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
Don't know what is SMP, but there are some people here who've done some APIC coding. Maybe if you asked specific question(s), you'd get more answers.
Post 19 Jan 2009, 23:41
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
Quote:

Don't know what is SMP

Symmetric MultiProcessing probably.
Post 19 Jan 2009, 23:48
View user's profile Send private message Reply with quote
Feryno



Joined: 23 Mar 2005
Posts: 454
Location: Czech republic, Slovak republic
Feryno
There is a lot of info in the whole FASM board. Thus it is not easy to find things of our intereset using the search function http://board.flatassembler.net/search.php, is it?
It took me few minutes to find it even I exactly knew what i wanted to search. I succeded thanks to remembering the specific word 'vaba' which is not an english word so then the result was the right board thread where is very nice code about SMP programming:
http://board.flatassembler.net/topic.php?p=77581#77581
If you program SMP, you usually write into APIC, which is usually memory mapped somewhere. I suggest you to download Intel or AMD manual where you have detailed info about data written into APIC and offsets where to write.
It is not so terrible as it looks for the first sight.
The physical address of APIC is constant after CPU init, but it may be changed using MSR. If you use paging, then you must map the memory into virtual memory space and then you can write into it.
Post 20 Jan 2009, 12:58
View user's profile Send private message Visit poster's website ICQ Number 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-2020, Tomasz Grysztar.

Powered by rwasa.