Skip to contentSkip to conversation

sparc: correct section of current_pc()

PATCH Frédéric Weisbecker 1 participant 1 message Oct 21, 2008 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

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 __init no_sun4u_here.
This is often because current_pc lacks a __init annotation or the annotation of no_sun4u_here is wrong.

Since current_pc() is used only in early time, it is correct to put it in .init section.

---

arch/sparc/kernel/head.S +0 -0
index 2d325fd..2fe2c11 100644

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)