ARM: Fix a bug in stack's "top" initialization
Code-paths responsible for initializing CPU's stack pointer and variable
used in stack memory resource reservation got out of sync which resulted
in actual stack being 64K off from what "stack" struct resource
registered by arm_request_stack() thought it was.

At least one issue resulting from that can be easily triggered by
running:

memtest -t

This commit unifies the aforementioned code to a certain degree which
solves the problem and hopefuly makes it less likely to become an issue
again.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 51a2a8e commit bb9125c93ef38757a436fe0f941c8c63fbc0477e
@Andrey Smirnov Andrey Smirnov authored on 19 Dec 2016
Sascha Hauer committed on 9 Jan 2017
Showing 3 changed files
View
arch/arm/cpu/entry.c
View
arch/arm/cpu/start.c
View
arch/arm/include/asm/barebox-arm.h