Re: (XFree86) mmap of /proc/XXX/mem

Alan Cox (alan@lxorguk.ukuu.org.uk)
Wed, 1 Dec 1999 23:02:09 +0000 (GMT)


> calling vm86(). So far the real mode image is initialized during
> startup for each card that requests it. When a card wants to
> make a BIOS call its real mode image is mapped to address 0
> by mmapping /proc/self/mem. However I have reports mmapping
> /proc/XXX/mem was removed from later versions of the 2.3 branch.

Yes.

> Is there anybody who knows a workaround for this? If there is
> none - and so far I couldn't think of one myself - I would strongly
> encourage the kernel developer to re-add this feature.

Its buggy in all kernels, its almost impossible to fix. It was never
a planned feature either, it just happened to occur.

You probably want the virtual PC image in the low 1Mb from the start. DOSemu
has an example of how you can do this. The emu is a library with a tiny
stub application in effect. That puts the entire app above 1Mb

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/