From owner-freebsd-hackers Sun Jan 21 05:00:10 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id FAA15131 for hackers-outgoing; Sun, 21 Jan 1996 05:00:10 -0800 (PST) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id FAA15124 for ; Sun, 21 Jan 1996 05:00:04 -0800 (PST) Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.9/8.6.9) id XAA10974; Sun, 21 Jan 1996 23:54:09 +1100 Date: Sun, 21 Jan 1996 23:54:09 +1100 From: Bruce Evans Message-Id: <199601211254.XAA10974@godzilla.zeta.org.au> To: brians@mandor.dev.com, freebsd-hackers@FreeBSD.ORG Subject: Re: USER_LDT limit Sender: owner-hackers@FreeBSD.ORG Precedence: bulk >I'm playing with Wine for FreeBSD 2.1, and found something odd. In >/usr/src/sys/i386/i386/sys_machdep.c, I see that the descriptor maximum >allowed in i386_set_ldt() is 512, which isn't strange. What is surprising >is that it isn't a macro define. Is the number 512 magic? I'd like to I think it is just bad programming. The power of 2 size is good for avoiding memory wastage. However, malloc() would better than kmem_malloc() here since malloc() provides statistics. However^2, the amount of memory is fairly large and it is per-process, so it should be pageable. Can the vm system page user LDT's? Bruce