* [PATCH 05/05] percpu i386 linker script update
@ 2006-04-14 21:19 Steven Rostedt
2006-04-14 21:23 ` Sam Ravnborg
0 siblings, 1 reply; 3+ messages in thread
From: Steven Rostedt @ 2006-04-14 21:19 UTC (permalink / raw)
To: LKML
Add .data.percpu_offset section into arch/i386
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Index: linux-2.6.17-rc1/arch/i386/kernel/vmlinux.lds.S
===================================================================
--- linux-2.6.17-rc1.orig/arch/i386/kernel/vmlinux.lds.S 2006-04-14 15:43:49.000000000 -0400
+++ linux-2.6.17-rc1/arch/i386/kernel/vmlinux.lds.S 2006-04-14 15:58:08.000000000 -0400
@@ -62,6 +62,9 @@ SECTIONS
/* rarely changed data like cpu maps */
. = ALIGN(32);
.data.read_mostly : AT(ADDR(.data.read_mostly) - LOAD_OFFSET) { *(.data.read_mostly) }
+ __per_cpu_offset_start = .;
+ .data.percpu_offset : AT(ADDR(.data.percpu_offset) - LOAD_OFFSET) { *(.data.percpu_offset) }
+ __per_cpu_offset_end = .;
_edata = .; /* End of data section */
. = ALIGN(THREAD_SIZE); /* init_task */
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH 05/05] percpu i386 linker script update
2006-04-14 21:19 [PATCH 05/05] percpu i386 linker script update Steven Rostedt
@ 2006-04-14 21:23 ` Sam Ravnborg
2006-04-14 21:31 ` Steven Rostedt
0 siblings, 1 reply; 3+ messages in thread
From: Sam Ravnborg @ 2006-04-14 21:23 UTC (permalink / raw)
To: Steven Rostedt; +Cc: LKML
On Fri, Apr 14, 2006 at 05:19:33PM -0400, Steven Rostedt wrote:
> Add .data.percpu_offset section into arch/i386
>
> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
>
> Index: linux-2.6.17-rc1/arch/i386/kernel/vmlinux.lds.S
> ===================================================================
> --- linux-2.6.17-rc1.orig/arch/i386/kernel/vmlinux.lds.S 2006-04-14 15:43:49.000000000 -0400
> +++ linux-2.6.17-rc1/arch/i386/kernel/vmlinux.lds.S 2006-04-14 15:58:08.000000000 -0400
> @@ -62,6 +62,9 @@ SECTIONS
> /* rarely changed data like cpu maps */
> . = ALIGN(32);
> .data.read_mostly : AT(ADDR(.data.read_mostly) - LOAD_OFFSET) { *(.data.read_mostly) }
> + __per_cpu_offset_start = .;
> + .data.percpu_offset : AT(ADDR(.data.percpu_offset) - LOAD_OFFSET) { *(.data.percpu_offset) }
> + __per_cpu_offset_end = .;
> _edata = .; /* End of data section */
>
> . = ALIGN(THREAD_SIZE); /* init_task */
Can we please have this definition in:
include/asm-generic/vmlinux.lds.h
At least it looks to make sense for other arch's than just i386.
Something like
#define PERCPU_OFFSET \
...
Sam
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH 05/05] percpu i386 linker script update
2006-04-14 21:23 ` Sam Ravnborg
@ 2006-04-14 21:31 ` Steven Rostedt
0 siblings, 0 replies; 3+ messages in thread
From: Steven Rostedt @ 2006-04-14 21:31 UTC (permalink / raw)
To: Sam Ravnborg; +Cc: LKML
On Fri, 2006-04-14 at 23:23 +0200, Sam Ravnborg wrote:
> On Fri, Apr 14, 2006 at 05:19:33PM -0400, Steven Rostedt wrote:
> > Add .data.percpu_offset section into arch/i386
> >
> > Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
> >
> > Index: linux-2.6.17-rc1/arch/i386/kernel/vmlinux.lds.S
> > ===================================================================
> > --- linux-2.6.17-rc1.orig/arch/i386/kernel/vmlinux.lds.S 2006-04-14 15:43:49.000000000 -0400
> > +++ linux-2.6.17-rc1/arch/i386/kernel/vmlinux.lds.S 2006-04-14 15:58:08.000000000 -0400
> > @@ -62,6 +62,9 @@ SECTIONS
> > /* rarely changed data like cpu maps */
> > . = ALIGN(32);
> > .data.read_mostly : AT(ADDR(.data.read_mostly) - LOAD_OFFSET) { *(.data.read_mostly) }
> > + __per_cpu_offset_start = .;
> > + .data.percpu_offset : AT(ADDR(.data.percpu_offset) - LOAD_OFFSET) { *(.data.percpu_offset) }
> > + __per_cpu_offset_end = .;
> > _edata = .; /* End of data section */
> >
> > . = ALIGN(THREAD_SIZE); /* init_task */
>
> Can we please have this definition in:
> include/asm-generic/vmlinux.lds.h
>
> At least it looks to make sense for other arch's than just i386.
>
> Something like
> #define PERCPU_OFFSET \
> ...
Sounds good, thanks!
-- Steve
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-04-14 21:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-14 21:19 [PATCH 05/05] percpu i386 linker script update Steven Rostedt
2006-04-14 21:23 ` Sam Ravnborg
2006-04-14 21:31 ` Steven Rostedt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®