mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-17 18:14:24 +00:00
refactor(cpus): replace adr with adr_l
Replace "adr" with "adr_l" to handle symbols or labels that exceeds 1MB access range. This modification resolves the link error. Change-Id: I9eba2e34c0a303b40e4c7b3ea7c5b113f4c6d989 Signed-off-by: Hsin-Hsiung Wang <hsin-hsiung.wang@mediatek.com>
This commit is contained in:
parent
31857d4cba
commit
a5c4212f05
2 changed files with 3 additions and 3 deletions
|
@ -450,7 +450,7 @@ sync_handler64:
|
||||||
*
|
*
|
||||||
* handler = (base + off) + (index << log2(size))
|
* handler = (base + off) + (index << log2(size))
|
||||||
*/
|
*/
|
||||||
adr x11, (__RT_SVC_DESCS_START__ + RT_SVC_DESC_HANDLE)
|
adr_l x11, (__RT_SVC_DESCS_START__ + RT_SVC_DESC_HANDLE)
|
||||||
lsl w10, w15, #RT_SVC_SIZE_LOG2
|
lsl w10, w15, #RT_SVC_SIZE_LOG2
|
||||||
ldr x15, [x11, w10, uxtw]
|
ldr x15, [x11, w10, uxtw]
|
||||||
|
|
||||||
|
|
|
@ -165,13 +165,13 @@ func get_cpu_ops_ptr
|
||||||
and w2, w2, w3
|
and w2, w2, w3
|
||||||
|
|
||||||
/* Get the cpu_ops end location */
|
/* Get the cpu_ops end location */
|
||||||
adr x5, (__CPU_OPS_END__ + CPU_MIDR)
|
adr_l x5, (__CPU_OPS_END__ + CPU_MIDR)
|
||||||
|
|
||||||
/* Initialize the return parameter */
|
/* Initialize the return parameter */
|
||||||
mov x0, #0
|
mov x0, #0
|
||||||
1:
|
1:
|
||||||
/* Get the cpu_ops start location */
|
/* Get the cpu_ops start location */
|
||||||
adr x4, (__CPU_OPS_START__ + CPU_MIDR)
|
adr_l x4, (__CPU_OPS_START__ + CPU_MIDR)
|
||||||
|
|
||||||
2:
|
2:
|
||||||
/* Check if we have reached end of list */
|
/* Check if we have reached end of list */
|
||||||
|
|
Loading…
Add table
Reference in a new issue