Re: [PATCH 12/17] x86-64: Use absolute displacements for per-cpuaccesses.

From: Tejun Heo
Date: Sat Jan 17 2009 - 23:24:42 EST


Hello, Brian.

Brian Gerst wrote:
> Accessing memory through %gs should not use rip-relative addressing.
> Adding a P prefix for the argument tells gcc to not add (%rip) to
> the memory references.

Nice catch. I dind't know about the P prefix thing. It also is used
in other places too. Hmmm... I can't find anything about the P
argument prefix in the gcc info page (4.3). Any ideas where I can
find some information about it? It's a bit weird that it's not a
constraint prefix but an argument one.

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/