delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/21/11:56:32

Date: Thu, 21 Oct 1999 15:01:06 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Martin Stromberg <eplmst AT lu DOT erisoft DOT se>
cc: djgpp AT delorie DOT com
Subject: Re: far call
In-Reply-To: <7umnvs$p4l$1@antares.lu.erisoft.se>
Message-ID: <Pine.SUN.3.91.991021145742.2684c-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 21 Oct 1999, Martin Stromberg wrote:

> How do you request (and perhaps get) a selector for a different
> ring-level than your own (which in DJGPP is three)?

See __dpmi_set_descriptor and __dpmi_set_descriptor_access_rights
(there are also corresponding *get* functions).

Whether this will work is another question.

In general, if you want to call code that's higher privilege that your 
CPL, you need to set up a ``call gate'' and use it to make the privileged 
call.  But some environments will let you do that in a naive way.

- Raw text -


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