Skip to content

Commit

Permalink
m32r: Move the spi_stack_top and spu_stack_top into .init.data section.
Browse files Browse the repository at this point in the history
Since these get squashed into the .data output section by the m32r
linker script, it seems likely that they don't need their own input
sections.

At Hirokazu Takata's suggestion, we place these structures in
.init.data rather than just placing them in .data (since they are only
used at init time).

This patch is preparation for cleaning up the m32r architecture to use
the new macros in vmlinux.lds.h; if these sections are indeed not
needed, then we can use the RW_DATA_SECTION macro for m32r and save a
bunch of redundant code.

Signed-off-by: Tim Abbott <tabbott@ksplice.com>
Signed-off-by: Hirokazu Takata <takata@linux-m32r.org>
  • Loading branch information
Tim Abbott authored and Hirokazu Takata committed Sep 22, 2009
1 parent 2a67d26 commit 743486d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions arch/m32r/kernel/head.S
Original file line number Diff line number Diff line change
Expand Up @@ -268,13 +268,13 @@ ENTRY(empty_zero_page)
/*------------------------------------------------------------------------
* Stack area
*/
.section .spi
.section .init.data, "aw"
ALIGN
.global spi_stack_top
.zero 1024
spi_stack_top:

.section .spu
.section .init.data, "aw"
ALIGN
.global spu_stack_top
.zero 1024
Expand Down
2 changes: 0 additions & 2 deletions arch/m32r/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ SECTIONS

/* writeable */
.data : { /* Data */
*(.spu)
*(.spi)
DATA_DATA
CONSTRUCTORS
}
Expand Down

0 comments on commit 743486d

Please sign in to comment.