Hi,
On 10-3-1 下午11:59, Björn Döbel wrote:
Compiles and runs for me right now. However, this solution does a global IRQ disable by using a global CLI/STI lock and therefore does not adhere to the DDE semantics of every thread running on its own virtual CPU. So, this may not be the final solution we'll end up with, but if it works for you, feel free to go ahead with it.
I don't know why DDE needs this kind of semantics. Does the implementation of DDE reply on it? or how does DDE reply on it?
L4Linux uses a threaded lock implementation for that reason, so we'll discuss reusing this idea.
What is a threaded lock?
It's a lock implementation that uses a dedicated thread to serialize lock accesses and implements waiting on a lock by blocking in an IPC to this thread.
Isn't it also like a global lock?
Best regards, Zheng Da