Re: broken local_t on i386

Christoph Lameter
2006-06-12T18:28:07Z

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