* [PATCH 0/2] section name cleanup for m68knommu
@ 2009-04-30 23:50 Tim Abbott
2009-04-30 23:50 ` [PATCH 1/2] m68knommu: use new macro for .data.cacheline_aligned section Tim Abbott
2009-05-11 6:33 ` [PATCH 0/2] section name cleanup for m68knommu Greg Ungerer
0 siblings, 2 replies; 4+ messages in thread
From: Tim Abbott @ 2009-04-30 23:50 UTC (permalink / raw)
To: Sam Ravnborg
Cc: Linux kernel mailing list, Anders Kaseorg, Waseem Daher,
Denys Vlasenko, Jeff Arnold, Greg Ungerer, Tim Abbott
This patch series cleans up the section names on the m68knommu
architecture. It requires the architecture-independent macro
definitions from this patch series:
<http://www.spinics.net/lists/mips/msg33499.html>
The long-term goal here is to add support for building the kernel with
-ffunction-sections -fdata-sections. This requires renaming all the
magic section names in the kernel of the form .text.foo, .data.foo,
.bss.foo, and .rodata.foo to not have collisions with sections
generated for code like:
static int nosave = 0; /* -fdata-sections places in .data.nosave */
static void head(); /* -ffunction-sections places in .text.head */
Note that these patches have not been boot-tested (aside from testing
the analogous changes on x86), since I don't have access to the
appropriate hardware.
-Tim Abbott
Tim Abbott (2):
m68knommu: use new macro for .data.cacheline_aligned section.
m68knommu: use new macros for .data.init_task.
arch/m68knommu/kernel/init_task.c | 3 +--
arch/m68knommu/kernel/vmlinux.lds.S | 6 ++----
2 files changed, 3 insertions(+), 6 deletions(-)
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/2] m68knommu: use new macro for .data.cacheline_aligned section.
2009-04-30 23:50 [PATCH 0/2] section name cleanup for m68knommu Tim Abbott
@ 2009-04-30 23:50 ` Tim Abbott
2009-04-30 23:50 ` [PATCH 2/2] m68knommu: use new macros for .data.init_task Tim Abbott
2009-05-11 6:33 ` [PATCH 0/2] section name cleanup for m68knommu Greg Ungerer
1 sibling, 1 reply; 4+ messages in thread
From: Tim Abbott @ 2009-04-30 23:50 UTC (permalink / raw)
To: Sam Ravnborg
Cc: Linux kernel mailing list, Anders Kaseorg, Waseem Daher,
Denys Vlasenko, Jeff Arnold, Greg Ungerer, Tim Abbott
Signed-off-by: Tim Abbott <tabbott@mit.edu>
Cc: Greg Ungerer <gerg@uclinux.org>
---
arch/m68knommu/kernel/vmlinux.lds.S | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/arch/m68knommu/kernel/vmlinux.lds.S b/arch/m68knommu/kernel/vmlinux.lds.S
index b7fe505..f5154d9 100644
--- a/arch/m68knommu/kernel/vmlinux.lds.S
+++ b/arch/m68knommu/kernel/vmlinux.lds.S
@@ -147,8 +147,7 @@ SECTIONS {
. = ALIGN(4);
_sdata = . ;
DATA_DATA
- . = ALIGN(32);
- *(.data.cacheline_aligned)
+ CACHELINE_ALIGNED_DATA(32)
. = ALIGN(8192) ;
*(.data.init_task)
_edata = . ;
--
1.6.2.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] m68knommu: use new macros for .data.init_task.
2009-04-30 23:50 ` [PATCH 1/2] m68knommu: use new macro for .data.cacheline_aligned section Tim Abbott
@ 2009-04-30 23:50 ` Tim Abbott
0 siblings, 0 replies; 4+ messages in thread
From: Tim Abbott @ 2009-04-30 23:50 UTC (permalink / raw)
To: Sam Ravnborg
Cc: Linux kernel mailing list, Anders Kaseorg, Waseem Daher,
Denys Vlasenko, Jeff Arnold, Greg Ungerer, Tim Abbott
Signed-off-by: Tim Abbott <tabbott@mit.edu>
Cc: Greg Ungerer <gerg@uclinux.org>
---
arch/m68knommu/kernel/init_task.c | 3 +--
arch/m68knommu/kernel/vmlinux.lds.S | 3 +--
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/arch/m68knommu/kernel/init_task.c b/arch/m68knommu/kernel/init_task.c
index fe282de..8b81092 100644
--- a/arch/m68knommu/kernel/init_task.c
+++ b/arch/m68knommu/kernel/init_task.c
@@ -35,7 +35,6 @@ EXPORT_SYMBOL(init_task);
* way process stacks are handled. This is done by having a special
* "init_task" linker map entry..
*/
-union thread_union init_thread_union
- __attribute__((__section__(".data.init_task"))) =
+union thread_union init_thread_union __init_task_data =
{ INIT_THREAD_INFO(init_task) };
diff --git a/arch/m68knommu/kernel/vmlinux.lds.S b/arch/m68knommu/kernel/vmlinux.lds.S
index f5154d9..9616d7a 100644
--- a/arch/m68knommu/kernel/vmlinux.lds.S
+++ b/arch/m68knommu/kernel/vmlinux.lds.S
@@ -146,10 +146,9 @@ SECTIONS {
.data DATA_ADDR : {
. = ALIGN(4);
_sdata = . ;
+ INIT_TASK_DATA(8192)
DATA_DATA
CACHELINE_ALIGNED_DATA(32)
- . = ALIGN(8192) ;
- *(.data.init_task)
_edata = . ;
} > DATA
--
1.6.2.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 0/2] section name cleanup for m68knommu
2009-04-30 23:50 [PATCH 0/2] section name cleanup for m68knommu Tim Abbott
2009-04-30 23:50 ` [PATCH 1/2] m68knommu: use new macro for .data.cacheline_aligned section Tim Abbott
@ 2009-05-11 6:33 ` Greg Ungerer
1 sibling, 0 replies; 4+ messages in thread
From: Greg Ungerer @ 2009-05-11 6:33 UTC (permalink / raw)
To: Tim Abbott
Cc: Sam Ravnborg, Linux kernel mailing list, Anders Kaseorg,
Waseem Daher, Denys Vlasenko, Jeff Arnold, Greg Ungerer
Hi Tim,
Tim Abbott wrote:
> This patch series cleans up the section names on the m68knommu
> architecture. It requires the architecture-independent macro
> definitions from this patch series:
>
> <http://www.spinics.net/lists/mips/msg33499.html>
>
> The long-term goal here is to add support for building the kernel with
> -ffunction-sections -fdata-sections. This requires renaming all the
> magic section names in the kernel of the form .text.foo, .data.foo,
> .bss.foo, and .rodata.foo to not have collisions with sections
> generated for code like:
>
> static int nosave = 0; /* -fdata-sections places in .data.nosave */
> static void head(); /* -ffunction-sections places in .text.head */
>
> Note that these patches have not been boot-tested (aside from testing
> the analogous changes on x86), since I don't have access to the
> appropriate hardware.
>
> -Tim Abbott
>
>
> Tim Abbott (2):
> m68knommu: use new macro for .data.cacheline_aligned section.
> m68knommu: use new macros for .data.init_task.
>
> arch/m68knommu/kernel/init_task.c | 3 +--
> arch/m68knommu/kernel/vmlinux.lds.S | 6 ++----
> 2 files changed, 3 insertions(+), 6 deletions(-)
I don't see any problems here for m68knommu.
Regards
Greg
------------------------------------------------------------------------
Greg Ungerer -- Principal Engineer EMAIL: gerg@snapgear.com
SnapGear Group, McAfee PHONE: +61 7 3435 2888
825 Stanley St, FAX: +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia WEB: http://www.SnapGear.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-05-11 6:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-30 23:50 [PATCH 0/2] section name cleanup for m68knommu Tim Abbott
2009-04-30 23:50 ` [PATCH 1/2] m68knommu: use new macro for .data.cacheline_aligned section Tim Abbott
2009-04-30 23:50 ` [PATCH 2/2] m68knommu: use new macros for .data.init_task Tim Abbott
2009-05-11 6:33 ` [PATCH 0/2] section name cleanup for m68knommu Greg Ungerer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox