How do u do message passing in assembly?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
tom1000000

How do u do message passing in assembly?

Post by tom1000000 »

Hi,

I am making my microkernel and am wondering whats the best way to pass messages between processes.

For example, process A could easily use a system call to pass a message to process B.

Assuming that system calls pass the data through the registers (EAX - EDX), how do u physically get the message to process B? You can't write to process B's memory, obviously because process A is currently in memory.


How is message passing done at assembly level????
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:How do u do message passing in assembly?

Post by Pype.Clicker »

it IS done by memory writes. Either because the microkernel has an own memory space that is visible in all process (but for the microkernel only), so that it could store "message for proces B : <eax><edx>" until it schedules process B, or because the microkernel temporarily maps a page of process B in process A and writes the message in it (and then unmaps the page :)
tom1000000

Re:How do u do message passing in assembly?

Post by tom1000000 »

Thanks for your ideas.
Post Reply