Subject: Re: Arch-specific maxproc limit?
To: None <port-i386@netbsd.org, tech-kern@netbsd.org>
From: Bang Jun-Young <junyoung@netbsd.org>
List: tech-kern
Date: 12/15/2002 01:31:24
On Sat, Dec 14, 2002 at 01:57:05PM +0900, Bang Jun-Young wrote:
> > Is the ((MAXGDTSIZ - NGDT)/2) really needed in USER_LDT case for i386?
>
> AFAIK, USER_LDT is only used by Wine. Each Windows app can have up to 2
> LDT entries in GDT, one for app itself, and optionally, one for DPMI
> int 0x31 interface. However, I don't think "/ 2" is necessary, since
> very few Windows apps actually use DPMI and hardly anybody is running
> such program under Wine & NetBSD these days (if someone _really_ wanted
> to run one, I'd recommend that he buy a copy of Win9X).
Oops, my thinko. LDT entries are stored in the LDT, not the GDT. *-)
So each Windows app requires one slot in the GDT for the LDT and one
for the TSS, as John Kohl explained.
Jun-Young
--
Bang Jun-Young <junyoung@netbsd.org>