ARM: compressed: Reserve more stack space for ATAGS to FDT conversion
authorTomasz Figa <t.figa@samsung.com>
Tue, 29 Oct 2013 14:22:49 +0000 (15:22 +0100)
committerChanho Park <chanho61.park@samsung.com>
Thu, 7 Aug 2014 06:17:45 +0000 (15:17 +0900)
This patch increases size of stack space reserved for ATAGS to FDT
conversion from 64 KiB to 256 KiB to fix DTB corruption when size of DTB
blob exceeds 64 KiB.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
arch/arm/boot/compressed/head.S

index a7cd673..e3c0c1a 100644 (file)
@@ -263,7 +263,7 @@ restart:    adr     r0, LC0
                 * area.  No GOT fixup has occurred yet, but none of the
                 * code we're about to call uses any global variable.
                */
-               add     sp, sp, #0x10000
+               add     sp, sp, #0x40000
                stmfd   sp!, {r0-r3, ip, lr}
                mov     r0, r8
                mov     r1, r6
@@ -283,7 +283,7 @@ restart:    adr     r0, LC0
                bleq    atags_to_fdt
 
                ldmfd   sp!, {r0-r3, ip, lr}
-               sub     sp, sp, #0x10000
+               sub     sp, sp, #0x40000
 #endif
 
                mov     r8, r6                  @ use the appended device tree