public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tonny Tzeng <tonny.tzeng@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot]  [PATCH v2 4/4] [ARM] Add KGDB support for ARM platforms
Date: Sun, 18 Apr 2010 02:18:15 +0800	[thread overview]
Message-ID: <1271528295.17655.90.camel@localhost.localdomain> (raw)
In-Reply-To: <1271528127.17655.86.camel@localhost.localdomain>

Signed-off-by: Tonny Tzeng <tonny.tzeng@gmail.com>
---
 arch/arm/cpu/arm720t/start.S |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/arch/arm/cpu/arm720t/start.S b/arch/arm/cpu/arm720t/start.S
index 90b7240..fd06298 100644
--- a/arch/arm/cpu/arm720t/start.S
+++ b/arch/arm/cpu/arm720t/start.S
@@ -459,6 +459,12 @@ lock_loop:
 	mov	r0, sp
 	.endm
 
+	.macro	bad_restore_user_regs
+	ldr	lr, [sp, #S_PSR]		@ Get SVC cpsr
+	msr	spsr_cxsf, lr
+	ldmia	sp, {r0 - pc}^			@ Restore SVC registers
+	.endm
+
 	.macro	irq_save_user_regs
 	sub	sp, sp, #S_FRAME_SIZE
 	stmia	sp, {r0 - r12}			@ Calling r0-r12
@@ -510,6 +516,7 @@ undefined_instruction:
 	get_bad_stack
 	bad_save_user_regs
 	bl	do_undefined_instruction
+	bad_restore_user_regs
 
 	.align	5
 software_interrupt:
-- 
1.6.0.6

  parent reply	other threads:[~2010-04-17 18:18 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-17 17:20 [U-Boot] [PATCH] KGDB set / remove breakpoints Tonny Tzeng
2010-04-17 17:46 ` Mike Frysinger
2010-04-19  8:54   ` Tonny Tzeng
2010-04-20  6:15     ` Mike Frysinger
2010-04-17 18:10 ` [U-Boot] [PATCH v2 0/4] [ARM] Add KGDB support for ARM platforms Tonny Tzeng
2010-04-17 18:12   ` [U-Boot] [PATCH v2 1/4] " Tonny Tzeng
2010-04-17 18:15     ` [U-Boot] [PATCH v2 2/4] " Tonny Tzeng
2010-04-17 18:16       ` [U-Boot] [PATCH v2 3/4] " Tonny Tzeng
2010-04-17 18:18       ` Tonny Tzeng [this message]
2010-04-20  6:17   ` [U-Boot] [PATCH v2 0/4] " Mike Frysinger

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=1271528295.17655.90.camel@localhost.localdomain \
    --to=tonny.tzeng@gmail.com \
    --cc=u-boot@lists.denx.de \
    /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