diff options
| author | Alif Zakuan Yuslaimi <[email protected]> | 2025-02-18 16:35:06 +0800 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-02-25 10:54:02 -0600 |
| commit | 1c37e59bfbbae14dcc15894c8367339d16dda95a (patch) | |
| tree | 1d84bc06893718e60b0a154c364f49740113a0af /configs | |
| parent | b005eca0c91ce1b0136f4ac088fb98b7d93bbb51 (diff) | |
arm: armv8: Improve SPL data save and restore implementation
Introduce a new symbol in the beginning of .data section in
the common ARMv8 linker script and use that as a reference
for data save and restore.
Previously, the code would rely on calculating the start of
the .data section address via data size, however, we observed
that the data size does not really reflect the SPL mapped
addresses.
In our case, the binman_sym section size was not included in
the data size, which will result in a wrong address for the
.data start section, which prevents us from properly saving
and restoring SPL data.
This approach skips the calculation for the starting address
of the .data section, and instead just defines the beginning
address of the .data section and calling the symbol as needed,
in which we think as a simpler and much more robust method.
Signed-off-by: Alif Zakuan Yuslaimi <[email protected]>
Signed-off-by: Tien Fong Chee <[email protected]>
Reviewed-by: Tien Fong Chee <[email protected]>
Diffstat (limited to 'configs')
| -rw-r--r-- | configs/socfpga_agilex5_defconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/configs/socfpga_agilex5_defconfig b/configs/socfpga_agilex5_defconfig index 10686a0a7b3..61ce065a2bf 100644 --- a/configs/socfpga_agilex5_defconfig +++ b/configs/socfpga_agilex5_defconfig @@ -97,3 +97,4 @@ CONFIG_BLOBLIST=y CONFIG_BLOBLIST_SIZE=0x1000 CONFIG_BLOBLIST_ADDR=0x7e000 CONFIG_HANDOFF=y +CONFIG_SPL_RECOVER_DATA_SECTION=y |
