Re: [RFC v1 4/8] x86/init: add linker table support

From: H. Peter Anvin
Date: Thu Jan 21 2016 - 16:37:56 EST


On 01/21/16 12:05, Luis R. Rodriguez wrote:
>
>> At least on i386,
>> we have to do this in assembly code.
>
> Neat! How is that order kept?
>

Right now subarch_entries[] is just an array indexed by subarch number
hardcoded in head_32.S.

However, if you have a list of (id, target) then you could just iterate
over it.

-hpa