[Top][All Lists]

[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 22:14:22 +0200
User-agent: Mutt/1.3.28i

On Tue, Apr 23, 2002 at 04:01:12PM -0400, Roland McGrath wrote:
> > No, the assert happens using the DS segment. Hmm, I guess something
> > more is wrong here. It looks like the segment isn't protecting us here
> > and the segmentation fault just happens because of there is nothing
> > mapped at 0xc0000000 and it gets a page fault. If the segment would
> > protect us we should get a general protection exception, right?
> Yes, I think that's what should happen.  However, I think the segment
> limits are all off by one.  That is, try accessing 0xc0000004.  If that is
> the only problem, then using VM_MAX_ADDRESS-VM_MIN_ADDRESS-1 in the
> fill_ldt_descriptor calls should fix it.

0xc0000004 gives the same problems. Note that the assertion was right
in the first place, the GS segment didn't trigger it, only the DS

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

Attachment: pgprTyet89_Q8.pgp
Description: PGP signature

reply via email to

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