delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/08/14/04:15:16

From: pavenis AT lanet DOT lv
To: sandmann AT clio DOT rice DOT edu (Charles Sandmann),
acottrel AT ihug DOT com DOT au (Andrew Cottrell), djgpp-workers AT delorie DOT com,
eliz AT is DOT elta DOT co DOT il
Date: Tue, 14 Aug 2001 11:15:01 +0300
MIME-Version: 1.0
Subject: Re: Selector Exhaustion
Message-ID: <3B790835.21623.13164B@localhost>
In-reply-to: <10108131910.AA16614@clio.rice.edu>
References: <5832-Mon13Aug2001212853+0300-eliz AT is DOT elta DOT co DOT il> from "Eli Zaretskii" at Aug 13, 2001 09:28:53 PM
X-mailer: Pegasus Mail for Win32 (v3.12c)
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On 13 Aug 2001, at 14:10, Charles Sandmann wrote:

> 
> We don't need anything on CWSDPMI.
> We only need the CWS patch code on NT/Win2K/XP.
> For other platforms we want to probably check access rights, but I'd
> prefer to avoid making 16,000 DPMI calls to scan all the selectors.
> 

Checking access rights of decriptor does not use any DPMI call (see 
source below) 

Initially I did some timing:
checking all descriptors once took about 1 ms on PIII-700 (Win98SE)

Andris

/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
	.file "dpmi_lar.s"
#include "dpmidefs.h"

	FUNC(___dpmi_get_descriptor_access_rights)
	ENTER

	movw	ARG1, %ax
	lar	%eax, %eax
	jz	1f
	xorl	%eax, %eax		/* Indicate zero type if not legal */
1:
	shrl	$8, %eax
	andl	$0xf0ff, %eax

	LEAVE


- Raw text -


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