The entry function for the Arrow AXE5 Eagle board places the stack at the end of the OCRAM. However, the board firmware uses the same page for handoff data for barebox, which is read after barebox is already running. This may cause data corruption if the stack grows into the handoff data.
Patch 1 fixes the stack location for the Arrow AXE5 Eagle board to avoid corrupting the handoff data. Patch 2 adds a ENTRY_FUNCTION_AGILEX5 macro, which uses the fixed address for the stack and may be used by Agilex 5 based board. The address for the stack in OCRAM is SoC specific and specifying it per board is unnecessary and error prone. Signed-off-by: Michael Tretter <[email protected]> --- Michael Tretter (2): arm: socfpga: axe5-eagle: fix stack location arm: socfpga: agilex5: add helper for entry function arch/arm/boards/arrow-axe5-eagle/lowlevel.c | 5 ++--- include/mach/socfpga/barebox-arm.h | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+), 3 deletions(-) --- base-commit: 2cb5e0014a37160731ad6eb6d7f7d846394db362 change-id: 20260513-socfpga-agilex5-entry-890604ad08c9 Best regards, -- Michael Tretter <[email protected]>
