Re: FPU state management in L4Fiasco.OC program

Adam Lackorzynski <[email protected]>
Newsgroups gmane.comp.micro-kernel.l4.devel
Message-ID <[email protected]>
On Fri Apr 13, 2012 at 13:33:54 -0500, Mai, Haohui wrote:
> Adam,
> 
> Thanks for your clarification.
> 
> One thing that I'm not still quite clear is that how to manage FPU context
> in my settings.
> 
> The main challenge here is that to keep track the "current" pointer
> (similar to the current pointer in L4Linux) -- otherwise it's difficult to
> save the FPU context.
> 
> My OS only handles page faults and syscalls, and delegates scheduling
> processes to L4 completely.
> 
> Handling page faults and syscalls is easy in the sense that the IPC
> messages have complete information.
> 
> However, It's not immediately clear to me that how to keep track of
> "current" pointer and to save / restore FPU context.
> 
> Do you have any comments on this one? I appreciate your help.

Ok, then the question actually is why your user processes are running as
aliens at all. Receiving page-faults and other exceptions does not
depend on being an alien. This also works without it. Then the kernel
would just handle the FPU transparently for the threads and your handler
thread does not need to care about that.


Adam
-- 
Adam                 [email protected]
  Lackorzynski         http://os.inf.tu-dresden.de/~adam/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.