Skip to content

Commit

Permalink
m32r: section noise in head.S
Browse files Browse the repository at this point in the history
usual "introduce .text.head, put it in front of TEXT_TEXT in vmlinux.lds.S,
make the stuff up to jump to start_kernel live in it", same as on other
targets.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Al Viro authored and Linus Torvalds committed Nov 30, 2008
1 parent 8814b50 commit 1c4567a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/m32r/kernel/head.S
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ __INITDATA
/*
* References to members of the boot_cpu_data structure.
*/
.text
.section .text.head, "ax"
.global start_kernel
.global __bss_start
.global _end
Expand Down Expand Up @@ -133,7 +133,6 @@ loop1:
/*
* AP startup routine
*/
.text
.global eit_vector
ENTRY(startup_AP)
;; setup EVB
Expand Down Expand Up @@ -230,6 +229,7 @@ ENTRY(startup_AP)
nop
#endif /* CONFIG_SMP */

.text
ENTRY(stack_start)
.long init_thread_union+8192
.long __KERNEL_DS
Expand Down
1 change: 1 addition & 0 deletions arch/m32r/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ SECTIONS
_text = .; /* Text and read-only data */
.boot : { *(.boot) } = 0
.text : {
*(.text.head)
TEXT_TEXT
SCHED_TEXT
LOCK_TEXT
Expand Down

0 comments on commit 1c4567a

Please sign in to comment.