Attempt at addressing head*.S for modpost warnings
Kumar Gala
galak at kernel.crashing.org
Tue Jul 31 14:29:59 EST 2007
On Jul 30, 2007, at 8:50 PM, Stephen Rothwell wrote:
> Hi Kumar,
>
> [sorry for the slow reply]
>
> On Wed, 25 Jul 2007 01:49:04 -0500 (CDT) Kumar Gala
> <galak at kernel.crashing.org> wrote:
>>
>> Paul said you were looking into this issue as well. Wanted to
>> post what I
>> did on ppc32/e500 as a start for you to look at. I think the
>> other ppc32
>> head*.S can follow the same pattern if we like this. However,
>> wasn't sure
>> how to do _ENTRY() for ppc64.
>
> What I have done so far is to put some peices of the asm code into
> the .text.init.refok section (see the _INIT_STATIC macro in asm/
> ppc_asm.h
> in the current kernel). I was hoping to separate some of the asm
> into a
> new file (init_64.S) that would contain this and other code in
> the .init.text section. That is currently not working (ld crashed on
> me :-)).
>
> Even if you create a .text.head, you will need to teach modpost
> about it.
Modpost is already aware of .text.head. Its used on x86 and a few
other archs today.
- k
More information about the Linuxppc-dev
mailing list