summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJun Nie <jun.nie@linaro.org>2021-05-20 15:27:28 +0800
committerJun Nie <jun.nie@linaro.org>2021-05-20 15:27:28 +0800
commit22a6872019ec36c3a05678a65e9a1d6748a25b56 (patch)
tree9dca56cf57cb480f64c701cb32df65a673c09800
parent20239de4b576c6e96ef828a08f2d9a077803c03e (diff)
SPM: Fix build failureimx_5.4.70_2.3.0+fio+spm
Fix build failure when DEBUG=1 core/arch/arm/kernel/thread_spmc_a64.S:187:(.text.thread_foreign_intr_exit+0x4): relocation truncated to fit: R_AARCH64_ADR_PREL_LO21 against symbol `threads' defined in .bss.threads section in core/arch/arm/kernel/thread.o Signed-off-by: Jun Nie <jun.nie@linaro.org>
-rw-r--r--core/arch/arm/kernel/thread_spmc_a64.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/arch/arm/kernel/thread_spmc_a64.S b/core/arch/arm/kernel/thread_spmc_a64.S
index e1a0f0954..b4df4fb07 100644
--- a/core/arch/arm/kernel/thread_spmc_a64.S
+++ b/core/arch/arm/kernel/thread_spmc_a64.S
@@ -184,7 +184,7 @@ DECLARE_KEEP_PAGER thread_rpc
FUNC thread_foreign_intr_exit , :
/* load threads[w0].tsd.rpc_target_info into w1 */
mov x1, #THREAD_CTX_SIZE
- adr x2, threads
+ adr_l x2, threads
madd x1, x1, x0, x2
ldr w1, [x1, #THREAD_CTX_TSD_RPC_TARGET_INFO]
mov x2, #FFA_PARAM_MBZ