sparc: correct section of current_pc()
A message that is not in the archive (sent off-list or not yet received): [email protected]
2008/10/18 Frederic Weisbecker <[email protected]>:
Quoted 19 lines
Latest mainline gives this section mismatch on sparc:
The function
current_pc()references
the variable__initno_sun4u_here.
This is often becausecurrent_pclacks a__initannotation or the annotation ofno_sun4u_hereis wrong.Since
current_pc()is used only in early time, it is correct to put it in .init section.Signed-off-by Frederic Weisbecker <[email protected]>---
arch/sparc/kernel/head.S +0
-0
arch/sparc/kernel/head.S gokernel: · line 471
Quoted 7 lines
arch/sparc/kernel/head.S +1
-0@@ -465,6 +465,7 @@ gokernel: mov %o7, %g4 ! Save %o7 /* Jump to it, and pray... */ + __INIT current_pc: call 1f nop
(Adding William and sparclinux in cc)