On Mon, Mar 17, 2003 at 08:06:36PM +0100, wind-lkml@cocodriloo.com wrote:
> On Mon, Mar 17, 2003 at 07:57:49PM +0100, Marc-Christian Petersen wrote:
> > On Monday 17 March 2003 18:38, wind-lkml@cocodriloo.com wrote:
> >
> > Hi Wind,
> >
> > > > I wonder if this could be done by walking and faulting
> > > > all pages at fs/binfmt_elf.c::elf_map just after do_mmap...
> > > > will try it just now :)
> > >
> > > OK, this is not tested, since I'm compiling it now... feel free
> > > to correct :)
> >
> > mm/mmap.c:
> >
> > unsigned long do_mmap_pgoff(struct file * file, unsigned long addr, unsigned
> > long len,
> > unsigned long prot, unsigned long flags, unsigned long pgoff)
> > {
> >
> > your "do_mmap_pgoff" calls 7 arguments. Obviously it cannot compile 8-)
> >
>
> My first patch, I'm just becoming intimate with printk ;)
OK, so I took a different approach, and just called handle_mm_fault just
like if there had been user-level accesses to the file.
Applied on 2.5.63-uml1 and booted debian woody with it.
Can any of you try it on a real machine? (I dont have a test machine :(
Greets, Antonio.
This archive was generated by hypermail 2b29 : Sun Mar 23 2003 - 22:00:20 EST