aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel/init_task.c
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2008-12-27 03:34:41 -0500
committerDavid S. Miller <davem@davemloft.net>2008-12-27 03:34:41 -0500
commitb74e34dbdeb39136e0557930a373392b7d644f43 (patch)
treebfe3fb0ba71031cc0a07ee8ee19761b555d5dfe2 /arch/sparc/kernel/init_task.c
parent92d9091f305cc32eb64edc1757d925b93acde6da (diff)
sparc: use .data.init_task section for init_thread_union
Use a dedicated aligned section for the init_thread_union variable and declare this section in vmlinux.lds. This align sparc with most other architectures. Eventually this allow the init_task bits to be unified across all architectures. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel/init_task.c')
-rw-r--r--arch/sparc/kernel/init_task.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/sparc/kernel/init_task.c b/arch/sparc/kernel/init_task.c
index 8e64ebc445ef..62126e4cec54 100644
--- a/arch/sparc/kernel/init_task.c
+++ b/arch/sparc/kernel/init_task.c
@@ -23,6 +23,5 @@ EXPORT_SYMBOL(init_task);
23 * in etrap.S which assumes it. 23 * in etrap.S which assumes it.
24 */ 24 */
25union thread_union init_thread_union 25union thread_union init_thread_union
26 __attribute__((section (".text\"\n\t#"))) 26 __attribute__((section (".data.init_task")))
27 __attribute__((aligned (THREAD_SIZE)))
28 = { INIT_THREAD_INFO(init_task) }; 27 = { INIT_THREAD_INFO(init_task) };