[PATCH 05/08] percpu -v2 vmlinux.lds.h percpu_offset macro

From: Steven Rostedt
Date: Fri Apr 14 2006 - 23:13:10 EST


Added macro PERCPU_OFFSET to be inserted in the architectures.

Signed-off-by: Steven Rostedt <rostedt@xxxxxxxxxxx>

Index: linux-2.6.17-rc1/include/asm-generic/vmlinux.lds.h
===================================================================
--- linux-2.6.17-rc1.orig/include/asm-generic/vmlinux.lds.h 2006-04-13 20:41:54.000000000 -0400
+++ linux-2.6.17-rc1/include/asm-generic/vmlinux.lds.h 2006-04-14 18:50:07.000000000 -0400
@@ -166,3 +166,11 @@
.stab.index 0 : { *(.stab.index) } \
.stab.indexstr 0 : { *(.stab.indexstr) } \
.comment 0 : { *(.comment) }
+
+ /* Per CPU offsets */
+#define PERCPU_OFFSET \
+ __per_cpu_offset_start = .; \
+ .data.percpu_offset : AT(ADDR(.data.percpu_offset) - LOAD_OFFSET) { \
+ *(.data.percpu_offset) \
+ } \
+ __per_cpu_offset_end = .;


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/