24 Nov 2004 21:23
Re: Re: implementing the process abstraction in movitz
Muli Ben-Yehuda <mulix <at> mulix.org>
2004-11-24 20:23:22 GMT
2004-11-24 20:23:22 GMT
On Tue, Nov 23, 2004 at 02:39:38PM +0100, Frode Vatvedt Fjeld wrote: > I think if your goal really is linux emulation, then you really need > to set up an address-space with paging etc. Make a (defclass > linux-process ..) that plays abuot the same role as the linux "proc" > structure (or something like that, I don't really remember its > name..), struct task_struct > and your fork must essentially do the same as linux fork > does. Although I'd model it in terms of some initialization method on > linux-process, where fork initializes an instance as a copy of another > process. I'd start off by making some accessors to the paging > hardware, and build on that. sounds like the way to go, regardless of how I end up implementing it. > > Could you elaborate on what you have in mind? I wouldn't want to > > duplicate effort. > > I don't think you need to worry much about that. What I have in mind > is just some simple form of threads running in more or less the same > context as everything else. Ok, I'll keep my eyes open on the commits mailing list. Thanks. Cheers, Muli -- Muli Ben-Yehuda http://www.mulix.org | http://mulix.livejournal.com/
On Tue, Nov 23, 2004 at 02:39:38PM +0100, Frode Vatvedt Fjeld wrote: > I think if your goal really is linux emulation, then you really need > to set up an address-space with paging etc. Make a (defclass > linux-process ..) that plays abuot the same role as the linux "proc" > structure (or something like that, I don't really remember its > name..), struct task_struct > and your fork must essentially do the same as linux fork > does. Although I'd model it in terms of some initialization method on > linux-process, where fork initializes an instance as a copy of another > process. I'd start off by making some accessors to the paging > hardware, and build on that. sounds like the way to go, regardless of how I end up implementing it. > > Could you elaborate on what you have in mind? I wouldn't want to > > duplicate effort. > > I don't think you need to worry much about that. What I have in mind > is just some simple form of threads running in more or less the same > context as everything else. Ok, I'll keep my eyes open on the commits mailing list. Thanks. Cheers, Muli -- -- Muli Ben-Yehuda http://www.mulix.org | http://mulix.livejournal.com/
RSS Feed