From: manabian@gmail.com (Joachim Eastwood)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] arm: kbuild: make uImage entry an odd number on ARMv7-M
Date: Thu, 18 Sep 2014 18:22:23 +0200 [thread overview]
Message-ID: <1411057343-20861-2-git-send-email-manabian@gmail.com> (raw)
In-Reply-To: <1411057343-20861-1-git-send-email-manabian@gmail.com>
This allows U-Boot to branch to the kernel in Thumb mode on ARMv7M
CPUs that doesn't support ARM mode.
Signed-off-by: Joachim Eastwood <manabian@gmail.com>
---
Hi,
Based on old "Make the uImage entry an odd number" e2ed3be7319f2734
patch by Catalin Marinas.
regards
Joachim Eastwood
arch/arm/boot/Makefile | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/arch/arm/boot/Makefile b/arch/arm/boot/Makefile
index ec2f8065f955..bb68035e42f2 100644
--- a/arch/arm/boot/Makefile
+++ b/arch/arm/boot/Makefile
@@ -75,6 +75,11 @@ if [ $(words $(UIMAGE_LOADADDR)) -ne 1 ]; then \
false; \
fi
+ifeq ($(CONFIG_CPU_V7M),y)
+ # Set bit 0 to 1 so that Thumb mode is used
+ UIMAGE_ENTRYADDR=$(shell echo $(UIMAGE_LOADADDR) | sed -e "s/.$$/1/")
+endif
+
$(obj)/uImage: $(obj)/zImage FORCE
@$(check_for_multiple_loadaddr)
$(call if_changed,uimage)
--
1.8.0
next prev parent reply other threads:[~2014-09-18 16:22 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-18 16:22 [PATCH] ARM: zImage: add support for ARMv7-M Joachim Eastwood
2014-09-18 16:22 ` Joachim Eastwood [this message]
2014-09-18 17:38 ` Arnd Bergmann
2014-09-18 18:34 ` Joachim Eastwood
2014-09-19 10:33 ` Catalin Marinas
2014-09-19 12:40 ` Joachim Eastwood
2014-09-19 13:35 ` Catalin Marinas
2014-09-19 17:22 ` [PATCH v2] " Joachim Eastwood
2014-09-23 16:33 ` Catalin Marinas
2014-09-23 17:41 ` Joachim Eastwood
2014-09-23 17:49 ` [PATCH v3] " Joachim Eastwood
2014-09-23 19:32 ` Uwe Kleine-König
2014-09-23 20:42 ` Joachim Eastwood
2014-09-23 21:22 ` Uwe Kleine-König
2014-09-27 11:25 ` [PATCH v4] " Joachim Eastwood
2014-09-28 10:18 ` Uwe Kleine-König
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=1411057343-20861-2-git-send-email-manabian@gmail.com \
--to=manabian@gmail.com \
--cc=linux-arm-kernel@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;
as well as URLs for NNTP newsgroup(s).