[Top][All Lists]

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

Re: [PATCH] access gdtdesc on segment 0 unconditionally (Re: [PATCH] i38

From: Pavel Roskin
Subject: Re: [PATCH] access gdtdesc on segment 0 unconditionally (Re: [PATCH] i386-qemu port)
Date: Mon, 22 Jun 2009 15:39:03 -0400

On Mon, 2009-06-22 at 11:52 +0200, Robert Millan wrote: 
> > Since %cs is pointing to the code, it should be possible to point it to
> > gdtdesc.  They should be nearby.
> It is nearby, but the address reference for `gdtdesc' is absolute, NOT
> relative to %cs.  Of course, when %cs is 0 that's no problem.  But in my
> case I can't set %cs to 0 because my code is above 0x10000.

I think we can remove ADDR32 from the command.  I tried that on i386-pc
and it works in qemu and on real hardware.  I don't see any need to use
a 32-bit address in the lgdt command.

Pavel Roskin

reply via email to

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