Re: broken local_t on i386

From: Christoph Lameter
Date: Mon Jun 12 2006 - 14:26:56 EST


On Mon, 12 Jun 2006, Andi Kleen wrote:

> It does, but the per cpu data that everybody uses doesn't reside in the PDA
> because it wasn't possible to make this work with binutils
>
> It would require a relocation relative to another symbol which isn't
> really supported.

I dont think you need a relocation relative to another symbol. Map the
pda to a virtual adress range. That is then translated with a
processor specific page table to various physical addresses.

> At some point I considered using runtime patching to work around
> this limitation, but it would be some work and relatively complex.

Well this would drastically decreased the overhead for PDA access and fix
local.t
-
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/