]> git.sur5r.net Git - u-boot/commitdiff
ARM: DRA7xx: Fix memory allocation overflow
authorAndrew F. Davis <afd@ti.com>
Wed, 15 Feb 2017 15:16:53 +0000 (09:16 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 17 Feb 2017 22:24:35 +0000 (17:24 -0500)
When using early malloc the allocated memory can overflow into the SRAM
scratch space, move NON_SECURE_SRAM_IMG_END down a bit to allow more
dynamic allocation at the expense of a slightly smaller maximum image
size.

Signed-off-by: Andrew F. Davis <afd@ti.com>
Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
arch/arm/include/asm/arch-omap5/omap.h

index b5e5519fbde54be62cd5c1fd5d8cef551a2859fc..8f31da1a7b0d5d798513d20156f87f04f04dda3b 100644 (file)
@@ -188,7 +188,7 @@ struct s32ktimer {
 #if defined(CONFIG_DRA7XX)
 #define NON_SECURE_SRAM_START  0x40300000
 #define NON_SECURE_SRAM_END    0x40380000      /* Not inclusive */
-#define NON_SECURE_SRAM_IMG_END        0x4037E000
+#define NON_SECURE_SRAM_IMG_END        0x4037C000
 #else
 #define NON_SECURE_SRAM_START  0x40300000
 #define NON_SECURE_SRAM_END    0x40320000      /* Not inclusive */