lkml.org 
[lkml]   [2009]   [Jun]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 19/27] score: create kernel files asm-offsets.c entry.S head.S
From
Date
Sam Ravnborg <sam@ravnborg.org> 写于 2009-06-10 03:18:26:

> > new file mode 100644
> > index 0000000..a7432c1
> > --- /dev/null
> > +++ b/arch/score/kernel/head.S
> > @@ -0,0 +1,70 @@
> > +#include <asm/asm-offsets.h>
> > +
> > + .extern start_kernel
> > + .global init_thread_union
> > + .global kernelsp
> > +
> > + .section .init.text, "ax"
>
> Please use section definitions from include/linux/init.h.
> __INIT in this case.
>
> Other architectures uses __HEAD so they have full control
> on where to add this code in the final image.
>

Thanks Sam, I used macro define in linux/init.h instead of
the code in all .S files.

Best Regards
Liqin
--
\
 
 \ /
  Last update: 2009-06-13 09:07    [W:0.052 / U:0.840 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site