ARM: start: Fix code reordering problem
This adds a barrier after setup_c(). This is necessary because otherwise
some global variable assignments may be reordered by the compiler to be
executed before setup_c which cannot work.
This was observed when doing other unrelated changes to the start function,
it seems in current mainline state the compiler does not actually reorder
the code.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent fc6cb7a commit b8b0a7f19956a4ee936c374351b5f081e9d6b405
@Sascha Hauer Sascha Hauer authored on 2 Jul 2015
Showing 1 changed file
View
arch/arm/cpu/start.c