Re: [GIT PULL] Additional x86 fixes for 2.6.31-rc5

From: Tejun Heo
Date: Sun Aug 02 2009 - 21:02:02 EST


Hello,

H. Peter Anvin wrote:
> You can't actually do "lea %gs:foo,%rbx" (lea doesn't include the
> segment offset, unfortunately; I asked AMD to change that on 64 bits
> but, not too surprisingly, they weren't able to make that change.)
> Getting the address is expensive, but it's obviously possible -- which
> may have similar bad results. It would be worth experimenting with a
> little bit, though.

Yeap, this part is strange. I can't understand why it was done that
way. Interestingly, the segment override doesn't trigger any
exception, it just gets ignored. Is there a way to retrieve %gs value
without accessing memory? ie. other than %gs:identity_gs?

Thanks.

--
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/