Commit 7b63f354 authored by Philippe Gerum's avatar Philippe Gerum

ARM: ipipe: fix section mismatches for KUSER_TSC helpers

The change in #5a7e6eeede58 does not fix the root issue, but causes
__ipipe_tsc_register() to refer to .init data which is a section
violation too. Unfortunately, __ipipe_tsc_register() may be called
long after boot when loading a clocksource dynamically (which is what
the above commit was trying to address), but the position of TSC
helpers in the KUSER page depends on other -unrelated- helpers so we
have to define them in the same section.

To escape this stalemate, move the whole KUSER setup code and
variables outside of the .init section (TSC and other helpers), which
should only amount to a few hundreds of bytes.
parent c04c7995
......@@ -882,7 +882,9 @@ ENTRY(__switch_to)
UNWIND(.fnend )
ENDPROC(__switch_to)
#ifndef CONFIG_IPIPE
__INIT
#endif
/*
* User helpers.
......
......@@ -37,7 +37,7 @@
that the PC relative operations are computed correctly.
*/
.section .init.text, "ax", %progbits
.section .text, "ax", %progbits
THUMB( .arm )
.align 5
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment