bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: %gs:0 thread pseudoregister in oskit-mach


From: Jeroen Dekkers
Subject: Re: %gs:0 thread pseudoregister in oskit-mach
Date: Tue, 23 Apr 2002 23:15:03 +0200
User-agent: Mutt/1.3.28i

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: address@hidden
Debian GNU supporter - http://www.debian.org http://www.gnu.org
IRC: address@hidden

Attachment: pgp2W9UC7b_0Y.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]