OSDev.org

The Place to Start for Operating System Developers
It is currently Tue Oct 22, 2019 12:15 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: x86 SMP 2 core cpu, dedicate each core to a specific process
PostPosted: Wed Sep 18, 2019 7:06 am 
Offline

Joined: Wed Aug 08, 2012 10:57 am
Posts: 2
Hello every one.

I'm new at the forum.

I am building an OS from scratch on a SBC card with 2 network cards.
I was able to boot the BSP and execute trampoline code to wake up the other core (AP),

I need to know if it's possible to dedicate core 1 to monitor and respond
solely to network card 1 (rx, tx, pull status...etc),
and core 2 to care only for network card 2.

best regards for all OS developers :)


Top
 Profile  
 
 Post subject: Re: x86 SMP 2 core cpu, dedicate each core to a specific pro
PostPosted: Wed Sep 18, 2019 11:45 pm 
Offline
Member
Member
User avatar

Joined: Mon Jul 13, 2009 5:52 am
Posts: 99
Location: Denmark
This will probably depend a little bit on the SBC board, but I don't see why not.

If you can route all interrupts from card 1 to the BSP and all interrupts from card 2 to the AP, then you are good to go. Alternatively, your interrupt handler can notify the thread on each core about any information from the cards.


Top
 Profile  
 
 Post subject: Re: x86 SMP 2 core cpu, dedicate each core to a specific pro
PostPosted: Thu Sep 19, 2019 9:14 am 
Offline

Joined: Wed Aug 08, 2012 10:57 am
Posts: 2
thanks zity,

please correct me if I'm wrong:

my network cards are PCIe cards,
as I recall those cards don't have direct interrupt line
to the cpu, instead they use MSI to communicate an interrupt,
by enabling and using MSI from "PCI implementation pci.c" we can write apic id
to the message register in order to select the right core that
will respond to the interrupt, right?


best regards


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot] and 6 guests


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group