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

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

 



Added macro PERCPU_OFFSET to be inserted in the architectures.

Signed-off-by: Steven Rostedt <[email protected]>

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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux