tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kernel constructor



On Mon, Nov 10, 2014 at 7:46 PM, Justin Cormack
<justin%specialbusservice.com@localhost> wrote:
>
> On Nov 10, 2014 10:02 AM, "Masao Uebayashi" <uebayasi%gmail.com@localhost> wrote:
>>
>> __attribute__((constructor(n))), where n being priority, can do
>> ordering (hint from pooka@).
>>
>> Question is, how to provide __CTOR_LIST__, __CTOR_LIST_END__ equivalent
>> symbols.
>>
>> (It is super easy if MI linker script is there. :)
>
> Constructors have priorities but it is a single global ordering which is a
> bit ugly to use. But it is a nice idea to use this mechanism.

Hard to be uglier than how init_main.c looks like now...


Home | Main Index | Thread Index | Old Index