summaryrefslogtreecommitdiff
path: root/tools/u_boot_pylib/tools.py
diff options
context:
space:
mode:
authorAlif Zakuan Yuslaimi <alif.zakuan.yuslaimi@intel.com>2025-02-18 16:35:06 +0800
committerTom Rini <trini@konsulko.com>2025-02-25 10:54:02 -0600
commit1c37e59bfbbae14dcc15894c8367339d16dda95a (patch)
tree1d84bc06893718e60b0a154c364f49740113a0af /tools/u_boot_pylib/tools.py
parentb005eca0c91ce1b0136f4ac088fb98b7d93bbb51 (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 <alif.zakuan.yuslaimi@altera.com> Signed-off-by: Tien Fong Chee <tien.fong.chee@altera.com> Reviewed-by: Tien Fong Chee <tien.fong.chee@altera.com>
Diffstat (limited to 'tools/u_boot_pylib/tools.py')
0 files changed, 0 insertions, 0 deletions