diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2019-06-05 12:23:56 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-06-07 09:01:13 +0200 |
commit | 62260d6b6df4f4e36955279e1891e3e5a2fd8414 (patch) | |
tree | fa0e51b2c9a1172d5b4d4ce228303cb3ef02738c /arch/arm/mach-mvebu | |
parent | 2ee5b0aa94b16961423dcf5c383034abf3e1c048 (diff) | |
download | barebox-62260d6b6df4f4e36955279e1891e3e5a2fd8414.tar.gz barebox-62260d6b6df4f4e36955279e1891e3e5a2fd8414.tar.xz |
mvebu: make the compiler inline mvebu_remap_registers
Without that gcc 7.3.1 (from OSELAS.Toolchain-2018.02.0) makes
mvebu_remap_registers a standalone function which in its prolog saves
two registers to the stack. However this function is called early during
startup when there is no stack available yet and sp still points into
the nirvana which makes barebox crash.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mvebu')
-rw-r--r-- | arch/arm/mach-mvebu/common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-mvebu/common.c b/arch/arm/mach-mvebu/common.c index 6b4fa8b889..5650c1ed87 100644 --- a/arch/arm/mach-mvebu/common.c +++ b/arch/arm/mach-mvebu/common.c @@ -188,7 +188,7 @@ mem_initcall(mvebu_meminit); #define MVEBU_BRIDGE_REG_BASE 0x20000 #define DEVICE_INTERNAL_BASE_ADDR (MVEBU_BRIDGE_REG_BASE + 0x80) -static void mvebu_remap_registers(void) +static __always_inline void mvebu_remap_registers(void) { void __iomem *base = mvebu_get_initial_int_reg_base(); |