delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/20/10:30:01

Date: Wed, 20 Oct 1999 13:08:59 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Gisle Vanem <giva AT bryggen DOT bgnett DOT no>
cc: djgpp AT delorie DOT com
Subject: Re: far call
In-Reply-To: <Pine.UW2.3.95.991019185402.20452B-100000@bryggen.bgnett.no>
Message-ID: <Pine.SUN.3.91.991020130833.22660E-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019