Skip to content

Commit 0ebdcb4

Browse files
timabbotttorvalds
authored andcommitted
xtensa: convert to use __HEAD and HEAD_TEXT macros.
Signed-off-by: Tim Abbott <tabbott@mit.edu> Cc: Chris Zankel <chris@zankel.net> Acked-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent c80d471 commit 0ebdcb4

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎arch/xtensa/kernel/head.S‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include <asm/page.h>
2020
#include <asm/cacheasm.h>
2121

22+
#include <linux/init.h>
2223
#include <linux/linkage.h>
2324

2425
/*
@@ -45,7 +46,7 @@
4546
* instruction.
4647
*/
4748

48-
.section .head.text, "ax"
49+
__HEAD
4950
.globl _start
5051
_start: _j 2f
5152
.align 4

‎arch/xtensa/kernel/vmlinux.lds.S‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ SECTIONS
8585

8686
.text :
8787
{
88-
/* The .head.text section must be the first section! */
89-
*(.head.text)
88+
/* The HEAD_TEXT section must be the first section! */
89+
HEAD_TEXT
9090
*(.literal .text)
9191
VMLINUX_SYMBOL(__sched_text_start) = .;
9292
*(.sched.literal .sched.text)

0 commit comments

Comments
 (0)