From 179698097935e1faf443ca4b1cb175ba27fc182f Mon Sep 17 00:00:00 2001 From: Guennadi Liakhovetski Date: Wed, 28 Nov 2018 11:46:36 +0100 Subject: [PATCH] bootloader: change the start address to match the linker script The linker script on platforms, using the boot-loader places the .text section at SOF_TEXT_BASE, not at SOF_TEXT_START, the same name should be used for the start address in assembly even though so far on all platforms both names refer to the same location. Signed-off-by: Guennadi Liakhovetski --- src/arch/xtensa/smp/xtos/reset-vector.S | 2 +- src/arch/xtensa/up/xtos/reset-vector.S | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/arch/xtensa/smp/xtos/reset-vector.S b/src/arch/xtensa/smp/xtos/reset-vector.S index 2c0acd17a..568e0a4da 100644 --- a/src/arch/xtensa/smp/xtos/reset-vector.S +++ b/src/arch/xtensa/smp/xtos/reset-vector.S @@ -616,7 +616,7 @@ unpackdone: */ #if defined(CONFIG_BOOT_LOADER) && !defined(CONFIG_VM_ROM) - movi a0, SOF_TEXT_START + movi a0, SOF_TEXT_BASE callx0 a0 #else call0 _start // jump to _start (in crt1-*.S) diff --git a/src/arch/xtensa/up/xtos/reset-vector.S b/src/arch/xtensa/up/xtos/reset-vector.S index 9dc539198..f8c3e033f 100644 --- a/src/arch/xtensa/up/xtos/reset-vector.S +++ b/src/arch/xtensa/up/xtos/reset-vector.S @@ -587,7 +587,7 @@ unpackdone: #if defined(CONFIG_BOOT_LOADER) && !defined(CONFIG_VM_ROM) /*ToDo refine the _start*/ - movi a0, SOF_TEXT_START + movi a0, SOF_TEXT_BASE callx0 a0 #else call0 _start // jump to _start (in crt1-*.S)