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????
How do u do message passing in assembly?
- Pype.Clicker
- 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?
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 