All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] image.h Allow booting Aarch64 from arm
@ 2018-05-14 21:43 Ramon Fried
  2018-05-15 16:05 ` Simon Glass
  0 siblings, 1 reply; 2+ messages in thread
From: Ramon Fried @ 2018-05-14 21:43 UTC (permalink / raw)
  To: u-boot

Snapdragon bootloader needs to jump from 32bit to 64bit
Allow booting in these cases when CONFIG_AARCH32_SUPPORT_ARM64 is
defined.

Signed-off-by: Ramon Fried <ramon.fried@gmail.com>
---
 include/image.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/include/image.h b/include/image.h
index df701e3470..598c66177d 100644
--- a/include/image.h
+++ b/include/image.h
@@ -817,7 +817,13 @@ static inline int image_check_type(const image_header_t *hdr, uint8_t type)
 static inline int image_check_arch(const image_header_t *hdr, uint8_t arch)
 {
 	return (image_get_arch(hdr) == arch) ||
+#ifndef CONFIG_AARCH32_SUPPORT_ARM64
 		(image_get_arch(hdr) == IH_ARCH_ARM && arch == IH_ARCH_ARM64);
+#else
+		(image_get_arch(hdr) == IH_ARCH_ARM && arch == IH_ARCH_ARM64) ||
+		(image_get_arch(hdr) == IH_ARCH_ARM64 && arch == IH_ARCH_ARM);
+#endif
+
 }
 static inline int image_check_os(const image_header_t *hdr, uint8_t os)
 {
-- 
2.17.0

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

* [U-Boot] [PATCH] image.h Allow booting Aarch64 from arm
  2018-05-14 21:43 [U-Boot] [PATCH] image.h Allow booting Aarch64 from arm Ramon Fried
@ 2018-05-15 16:05 ` Simon Glass
  0 siblings, 0 replies; 2+ messages in thread
From: Simon Glass @ 2018-05-15 16:05 UTC (permalink / raw)
  To: u-boot

On 15 May 2018 at 07:43, Ramon Fried <ramon.fried@gmail.com> wrote:
> Snapdragon bootloader needs to jump from 32bit to 64bit
> Allow booting in these cases when CONFIG_AARCH32_SUPPORT_ARM64 is
> defined.
>
> Signed-off-by: Ramon Fried <ramon.fried@gmail.com>
> ---
>  include/image.h | 6 ++++++
>  1 file changed, 6 insertions(+)

Reviewed-by: Simon Glass <sjg@chromium.org>

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

end of thread, other threads:[~2018-05-15 16:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-14 21:43 [U-Boot] [PATCH] image.h Allow booting Aarch64 from arm Ramon Fried
2018-05-15 16:05 ` Simon Glass

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.