diff options
Diffstat (limited to 'arch/arm/boot/compressed/head.S')
-rw-r--r-- | arch/arm/boot/compressed/head.S | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/boot/compressed/head.S b/arch/arm/boot/compressed/head.S index 84ac4d656310..55a5bcb82ba0 100644 --- a/arch/arm/boot/compressed/head.S +++ b/arch/arm/boot/compressed/head.S | |||
@@ -253,6 +253,11 @@ restart: adr r0, LC0 | |||
253 | /* Preserve offset to relocated code. */ | 253 | /* Preserve offset to relocated code. */ |
254 | sub r6, r9, r6 | 254 | sub r6, r9, r6 |
255 | 255 | ||
256 | #ifndef CONFIG_ZBOOT_ROM | ||
257 | /* cache_clean_flush may use the stack, so relocate it */ | ||
258 | add sp, sp, r6 | ||
259 | #endif | ||
260 | |||
256 | bl cache_clean_flush | 261 | bl cache_clean_flush |
257 | 262 | ||
258 | adr r0, BSYM(restart) | 263 | adr r0, BSYM(restart) |