On Tue, Apr 23, 2002 at 05:00:35PM -0400, Roland McGrath wrote:
> Ah, I was thinking wrong.  The segment limit field is only 20 bits, so for
> segments larger than that you set the SZ_G bit and the granularity of the
> limit is 4kb (fill_descriptor in oskit/x86/seg.h does this).  So try making
> ldt.c use VM_MAX_ADDRESS-VM_MIN_ADDRESS-PAGE_SIZE, because the fencepost
> error is at 4k granularity.

This made it work fine. The error message is wrong however (with both
tests, the DS and GS segment). It says "Illegal instruction" instead
of "general protection fault" or whatever. But that doesn't look very
important to me.

Jeroen Dekkers
-- 
Jabber supporter - http://www.jabber.org Jabber ID: [EMAIL PROTECTED]
Debian GNU supporter - http://www.debian.org http://www.gnu.org
IRC: jeroen@openprojects

Attachment: msg04060/pgp00000.pgp
Description: PGP signature

Reply via email to