About the exception ipc reply
Guanghui, Cheng
cheng.guanghui.ml at gmail.com
Tue Oct 13 07:01:46 CEST 2009
On Monday 12 October 2009 02:03:41 Adam Lackorzynski wrote:
> On Sun Oct 11, 2009 at 22:17:49 +0800, Guanghui, Cheng wrote:
> > From the l4-x2 manual it is said the reply from the exception handler
> > contains a label, an instruction pointer where the faulting thread is
> > resumed. I want to know whether it is implemented in the Fiasco.
> > I try to do this. Modify the utcb before send ipc resume the exception
> > thread but it seems no any effect about the instruction pointer and stack
> > pointer of resumed exception thread.
>
> My guess would be that you did not set the number of words to send in
> the reply. Set L4_UTCB_EXCEPTION_REGS_SIZE in the msgtag-words field of
> the reply.
Hello Adam:
Now i use L4_UTCB_EXCEPTION_REGS_SIZE and i could fix the thread with esp and
eip by exception handler UTCB. And the thread could start with new instruction
pointer and new stack pointer. But it still has some problem when the thread
quit from new function. So i want to know how an thread is resumed by
exception reply. I mean which part of code in kernel could finish the thread
wakeup. I read the receive.c but i don't find it.
Thanks.
Cheng
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://os.inf.tu-dresden.de/pipermail/l4-hackers/attachments/20091013/b56a638a/attachment.htm>
More information about the l4-hackers
mailing list