summaryrefslogtreecommitdiffstats
path: root/arch/arm/cpu/setupc_64.S
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2022-08-18 07:04:47 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2022-08-22 10:52:19 +0200
commit7deef2fa981b81426443281f84b142080f46cf74 (patch)
tree748b283bfdee8525b9c78b4e207ba9f035c3ae6d /arch/arm/cpu/setupc_64.S
parent867681db2efe997d3f5c3b1ba1bebb366a336110 (diff)
downloadbarebox-7deef2fa981b81426443281f84b142080f46cf74.tar.gz
barebox-7deef2fa981b81426443281f84b142080f46cf74.tar.xz
pbl: replace __piggydata_end with __image_end
__piggydata_end and __image_end used to be synonyms before the addition of external firmware. Now that external firmware is located after __piggydata_end, code using it needs to be revisited. There's no reason to have code reference __piggydata_end. Either they want all the rest of the image, so they should use __image_end instead or they want just the piggy data, in which case they can read the data size embedded into the piggydata itself. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20220818050447.2072932-4-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/cpu/setupc_64.S')
-rw-r--r--arch/arm/cpu/setupc_64.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/cpu/setupc_64.S b/arch/arm/cpu/setupc_64.S
index b5f4a643fa..d64281c148 100644
--- a/arch/arm/cpu/setupc_64.S
+++ b/arch/arm/cpu/setupc_64.S
@@ -29,7 +29,7 @@ ENDPROC(setup_c)
/* x0: target address */
#ifdef __PBL__
ENTRY(relocate_to_adr_full)
- ldr x2, =__piggydata_end
+ ldr x2, =__image_end
b 1f
#endif