[haiku-development] Re: Virtual 8086 mode support

Jan Klötzke <jan.kloetzke@xxxxxxxxxx> wrote:
> Am Montag, 21. April 2008 schrieb Axel Dörfler:
> > Great, thanks!
> > About keeping the area around, as I proposed above: that might not
> > be a
> > good idea after all, since at least accessing the first page should
> > always lead to a page fault if possible.
> I too think it should be the best to setup the needed areas just
> before doing
> any BIOS calls, make one or more calls (whatever the driver needs)
> and then
> delete the areas. There would only be a small window where a possible
> NULL
> pointer access will not lead to SIGSEGV...

I guess we'll have to live with that one - it probably doesn't have the
power to hide an important bug, anyway. We could only set the first
bytes to something like "abadcafe", "deadbeef", or whatever your
preference is ;-)

Bye,
   Axel.


Other related posts: