diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/lib/board.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/lib/board.c b/arch/x86/lib/board.c index dfb8abf466..fece567e31 100644 --- a/arch/x86/lib/board.c +++ b/arch/x86/lib/board.c @@ -197,11 +197,10 @@ static int calculate_relocation_address(void) /* Calculate destination RAM Address and relocation offset */ dest_addr = (void *)gd->ram_size; - dest_addr -= CONFIG_SYS_STACK_SIZE; dest_addr -= (bss_end - text_start); rel_offset = dest_addr - text_start; - gd->start_addr_sp = gd->ram_size; + gd->start_addr_sp = (uintptr_t)dest_addr - CONFIG_SYS_MALLOC_LEN; gd->relocaddr = (ulong)dest_addr; gd->reloc_off = rel_offset; |