From: Fabian Pflug <f.pflug@pengutronix.de>
To: BAREBOX <barebox@lists.infradead.org>
Cc: Fabian Pflug <f.pflug@pengutronix.de>
Subject: [PATCH 1/3] ARM: make arm_mem_scratch respect the OP-TEE stack
Date: Mon, 08 Dec 2025 10:28:38 +0100 [thread overview]
Message-ID: <20251208-v2025-11-0-topic-optee-imx6-start-v1-1-0907128cdb8f@pengutronix.de> (raw)
In-Reply-To: <20251208-v2025-11-0-topic-optee-imx6-start-v1-0-0907128cdb8f@pengutronix.de>
According to the ASCII-ART above, before the end of memory comes the
optee memory, then the scratch stack.
Signed-off-by: Fabian Pflug <f.pflug@pengutronix.de>
---
arch/arm/include/asm/barebox-arm.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/include/asm/barebox-arm.h b/arch/arm/include/asm/barebox-arm.h
index 11be8b8583..e630969796 100644
--- a/arch/arm/include/asm/barebox-arm.h
+++ b/arch/arm/include/asm/barebox-arm.h
@@ -159,7 +159,7 @@ static inline unsigned long arm_mem_stack_top(unsigned long endmem)
static inline const void *arm_mem_scratch_get(void)
{
- return (const void *)arm_mem_scratch(arm_mem_endmem_get());
+ return (const void *)arm_mem_scratch(arm_mem_optee(arm_mem_endmem_get()));
}
static inline unsigned long arm_mem_guard_page_get(void)
--
2.47.3
next prev parent reply other threads:[~2025-12-08 9:29 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-08 9:28 [PATCH 0/3] Add generic OP-TEE loading for i.MX6 Fabian Pflug
2025-12-08 9:28 ` Fabian Pflug [this message]
2025-12-10 7:18 ` [PATCH 1/3] ARM: make arm_mem_scratch respect the OP-TEE stack Sascha Hauer
2025-12-10 9:32 ` Fabian Pflug
2025-12-08 9:28 ` [PATCH 2/3] ARM: i.MX: scratch: add generic init for imx Fabian Pflug
2025-12-08 9:28 ` [PATCH 3/3] ARM: i.MX6: load optee in PBL before barebox proper Fabian Pflug
2025-12-10 7:40 ` Sascha Hauer
2025-12-10 9:20 ` Fabian Pflug
2025-12-10 10:58 ` Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251208-v2025-11-0-topic-optee-imx6-start-v1-1-0907128cdb8f@pengutronix.de \
--to=f.pflug@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox