Commit 1cca40bb authored by Keith M. Wesolowski's avatar Keith M. Wesolowski

[SPARC32]: Correct init_thread_union section and alignment for gcc 3.3+

Recent tools are disregarding both the __asm__(".text") in init_task.c
and the alignment at the end of .text in head.S.  Use attributes
instead.
parent 38d5a6c4
...@@ -746,9 +746,6 @@ go_to_highmem: ...@@ -746,9 +746,6 @@ go_to_highmem:
jmpl %g1, %g0 jmpl %g1, %g0
nop nop
/* This is to align init_thread_union properly, be careful. -DaveM */
.align 8192
/* The code above should be at beginning and we have to take care about /* The code above should be at beginning and we have to take care about
* short jumps, as branching to .text.init section from .text is usually * short jumps, as branching to .text.init section from .text is usually
* impossible */ * impossible */
......
...@@ -21,5 +21,7 @@ EXPORT_SYMBOL(init_task); ...@@ -21,5 +21,7 @@ EXPORT_SYMBOL(init_task);
* If this is not aligned on a 8k boundry, then you should change code * If this is not aligned on a 8k boundry, then you should change code
* in etrap.S which assumes it. * in etrap.S which assumes it.
*/ */
__asm__(".section \".text\",#alloc\n"); union thread_union init_thread_union
union thread_union init_thread_union = { INIT_THREAD_INFO(init_task) }; __attribute__((section (".text")))
__attribute__((aligned (THREAD_SIZE)))
= { INIT_THREAD_INFO(init_task) };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment