From: 张忠山 <zzs213@126.com>
To: barebox@lists.infradead.org
Cc: 张忠山 <zzs0213@gmail.com>
Subject: [PATCH] bugfix: don't rely on lr in arm_cpu_lowlevel_init
Date: Thu, 27 Feb 2014 16:14:08 +0800 [thread overview]
Message-ID: <1393488848-21278-1-git-send-email-zzs213@126.com> (raw)
From: 张忠山 <zzs0213@gmail.com>
Signed-off-by: 张忠山 <zzs213@126.com>
---
arch/arm/cpu/lowlevel.S | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/arm/cpu/lowlevel.S b/arch/arm/cpu/lowlevel.S
index 307b447..c615d5b 100644
--- a/arch/arm/cpu/lowlevel.S
+++ b/arch/arm/cpu/lowlevel.S
@@ -4,6 +4,7 @@
.section ".text_bare_init_","ax"
ENTRY(arm_cpu_lowlevel_init)
+ mov r2, lr
/* set the cpu to SVC32 mode */
mrs r12, cpsr
bic r12, r12, #0x1f
@@ -35,5 +36,5 @@ ENTRY(arm_cpu_lowlevel_init)
mcr p15, 0, r12, c1, c0, 0
- mov pc, lr
+ mov pc, r2
ENDPROC(arm_cpu_lowlevel_init)
--
1.7.9.5
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next reply other threads:[~2014-02-27 8:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-27 8:14 张忠山 [this message]
2014-02-27 9:41 ` 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=1393488848-21278-1-git-send-email-zzs213@126.com \
--to=zzs213@126.com \
--cc=barebox@lists.infradead.org \
--cc=zzs0213@gmail.com \
/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