mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/2] arm: socfpga: agilex5: fix stack in entry function
@ 2026-05-13 12:22 Michael Tretter
  2026-05-13 12:22 ` [PATCH 1/2] arm: socfpga: axe5-eagle: fix stack location Michael Tretter
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Michael Tretter @ 2026-05-13 12:22 UTC (permalink / raw)
  To: Sascha Hauer, BAREBOX; +Cc: Steffen Trumtrar, Michael Tretter

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 <m.tretter@pengutronix.de>
---
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 <m.tretter@pengutronix.de>




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-05-13 15:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-05-13 12:22 [PATCH 0/2] arm: socfpga: agilex5: fix stack in entry function Michael Tretter
2026-05-13 12:22 ` [PATCH 1/2] arm: socfpga: axe5-eagle: fix stack location Michael Tretter
2026-05-13 12:22 ` [PATCH 2/2] arm: socfpga: agilex5: add helper for entry function Michael Tretter
2026-05-13 14:07 ` [PATCH 0/2] arm: socfpga: agilex5: fix stack in " Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox