]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
spl: Correct address in spl_relocate_stack_gd()
authorSimon Glass <sjg@chromium.org>
Thu, 14 May 2015 03:15:21 +0000 (21:15 -0600)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:39:37 +0000 (22:39 +0200)
During the Kconfig conversion one of the changes was missed.
CONFIG_SPL_STACK_R should be CONFIG_SPL_STACK_R_ADDR since we want the
address.

Reported-by: Tim Harvey <tharvey@gateworks.com>
Signed-off-by: Simon Glass <sjg@chromium.org>
common/spl/spl.c

index 3ec10add6e8437ae37cb60c7edcf98cd62e65e5d..8f11328ad36f1885b99293b1bf86198b211a92d2 100644 (file)
@@ -329,7 +329,7 @@ ulong spl_relocate_stack_gd(void)
        ulong ptr;
 
        /* Get stack position: use 8-byte alignment for ABI compliance */
-       ptr = CONFIG_SPL_STACK_R - sizeof(gd_t);
+       ptr = CONFIG_SPL_STACK_R_ADDR - sizeof(gd_t);
        ptr &= ~7;
        new_gd = (gd_t *)ptr;
        memcpy(new_gd, (void *)gd, sizeof(gd_t));