Mail Archives: djgpp-workers/2001/08/14/04:15:16
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 -