Mail Archives: djgpp/1999/10/20/10:30:01
On Tue, 19 Oct 1999, Gisle Vanem wrote:
> >> Maybe I need to modify the selector for 'execute' ? (don't think so)
> >
> > I think you do need that. In which case you will have to define two
> > selectors: one for data, another for code, with the same base address
> > and limit, but different descriptors. (DJGPP does exactly that for CS
> > and DS, btw.)
>
> Bingo, changing the access-reight (ORing with 8) did the trick.
> A "fresh" descriptor seems to only have Read/Write access.
The DPMI spec says that an LDT descriptor is by default set to be for
data, not for code segments. So this is expected.
- Raw text -