Skip to content

Commit

Permalink
sparc: cleanup references to deprecated .text.init* sections.
Browse files Browse the repository at this point in the history
The section .text.init.refok is deprecated and __REF (.ref.text)
should be used in assembly files instead.  This patch cleans up a few
uses of .text.init.refok in the sparc architecture.

Also fix a reference to .text.init in a comment that wasn't updated to
.init.text.

Signed-off-by: Tim Abbott <[email protected]>
Cc: David S. Miller <[email protected]>
Acked-by: Sam Ravnborg <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
timabbott authored and torvalds committed Apr 28, 2009
1 parent 882016f commit a0871e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/sparc/kernel/head_32.S
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ go_to_highmem:
nop

/* 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 .init.text section from .text is usually
* impossible */
__INIT
/* Acquire boot time privileged register values, this will help debugging.
Expand Down
2 changes: 1 addition & 1 deletion arch/sparc/kernel/head_64.S
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ jump_to_sun4u_init:
jmpl %g2 + %g0, %g0
nop

.section .text.init.refok
__REF
sun4u_init:
BRANCH_IF_SUN4V(g1, sun4v_init)

Expand Down

0 comments on commit a0871e8

Please sign in to comment.