mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] common: PBL_OPTEE: Allow to compile in THUMB2 mode
@ 2025-06-30  8:01 Sascha Hauer
  2025-07-02  6:14 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Sascha Hauer @ 2025-06-30  8:01 UTC (permalink / raw)
  To: Barebox List

OP-TEE gained support for jumping back to the normal world in THUMB2
mode in commit 3d80ccc97 ("core: Allow non-secure context restore in
thumb mode"). The first OP-TEE release with this commit is 3.11.0. Allow
to compile barebox in THUMB2 mode with PBL_OPTEE enabled and update the
help text.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 common/Kconfig | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/common/Kconfig b/common/Kconfig
index 39a597bb70..0651f955dc 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -1408,15 +1408,15 @@ config BOOTM_OPTEE
 config PBL_OPTEE
 	bool "Enable OP-TEE early start"
 	depends on ARM
-	depends on !THUMB2_BAREBOX
 	select HAVE_OPTEE
 	help
 	  Allows starting OP-TEE during lowlevel initialization of the PBL.
 	  Requires explicit support in the board's lowlevel file (for ARM32)
 	  or the generic SoC support (for ARM64).
 
-	  The trampoline for jumping back from OP-TEE to barebox does currently
-	  not handle THUMB2, so barebox must be built either for A32 or A64.
+	  OP-TEE versions older than 3.11.0 do not support jumping back from OP-TEE
+	  to barebox in THUMB2 mode. Make sure you do not compile barebox in THUMB2
+	  mode for OP-TEE versions older than this.
 
 config FILETYPE_STRINGS
 	bool "Print file types as strings"
-- 
2.39.5




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

* Re: [PATCH] common: PBL_OPTEE: Allow to compile in THUMB2 mode
  2025-06-30  8:01 [PATCH] common: PBL_OPTEE: Allow to compile in THUMB2 mode Sascha Hauer
@ 2025-07-02  6:14 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2025-07-02  6:14 UTC (permalink / raw)
  To: Barebox List, Sascha Hauer


On Mon, 30 Jun 2025 10:01:22 +0200, Sascha Hauer wrote:
> OP-TEE gained support for jumping back to the normal world in THUMB2
> mode in commit 3d80ccc97 ("core: Allow non-secure context restore in
> thumb mode"). The first OP-TEE release with this commit is 3.11.0. Allow
> to compile barebox in THUMB2 mode with PBL_OPTEE enabled and update the
> help text.
> 
> 
> [...]

Applied, thanks!

[1/1] common: PBL_OPTEE: Allow to compile in THUMB2 mode
      https://git.pengutronix.de/cgit/barebox/commit/?id=94b33e217451 (link may not be stable)

Best regards,
-- 
Sascha Hauer <s.hauer@pengutronix.de>




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

end of thread, other threads:[~2025-07-02  6:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-06-30  8:01 [PATCH] common: PBL_OPTEE: Allow to compile in THUMB2 mode Sascha Hauer
2025-07-02  6:14 ` Sascha Hauer

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