All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tom Rini <trini@kernel.crashing.org>
To: akpm@osdl.org
Cc: linux-kernel@vger.kernel.org, mporter@kernel.crashing.org,
	takeharu1219@ybb.ne.jp
Subject: Re: [patch 3/8] KGDB support for ppc32
Date: Sat, 30 Oct 2004 12:05:18 -0700	[thread overview]
Message-ID: <20041030190517.GG15699@smtp.west.cox.net> (raw)
In-Reply-To: <3.29102004.trini@kernel.crashing.org>

On Fri, Oct 29, 2004 at 11:33:29AM -0700, Tom Rini wrote:
> 
> Cc: Matt Porter <mporter@kernel.crashing.org>
> This adds KGDB support for ppc32 and was done by myself.  Note that this
> currently doesn't work on 40x || BOOKE, but that problem is more generic (the
> current ppc stub doesn't work either) and Matt Porter is close to having a
> tested solution now.

As Matt has posted his work which makes KGDB functional again, the
following small patch is needed on top of this to make 40x || BOOKE work
with this stub.

Signed-off-by: Tom Rini <trini@kernel.crashing.org>

 linux-2.6.10-rc1/arch/ppc/kernel/kgdb.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
--- linux-2.6.10-rc1/arch/ppc/kernel/kgdb.c
+++ linux-2.6.10-rc1/arch/ppc/kernel/kgdb.c
@@ -54,7 +54,7 @@
 	{ 0x0d00, 0x04 /* SIGILL */  },		/* reserved */
 	{ 0x0e00, 0x04 /* SIGILL */  },		/* reserved */
 	{ 0x0f00, 0x04 /* SIGILL */  },		/* reserved */
-	{ 0x2000, 0x05 /* SIGTRAP */},		/* debug */
+	{ 0x2002, 0x05 /* SIGTRAP */},		/* debug */
 #else
 	{ 0x0200, 0x0b /* SIGSEGV */ },		/* machine check */
 	{ 0x0300, 0x0b /* SIGSEGV */ },		/* address error (store) */
@@ -240,8 +240,8 @@
 			if (remcom_in_buffer[0] == 's')
 			{
 #if defined (CONFIG_40x) || defined(CONFIG_BOOKE)
+				mtspr(SPRN_DBCR0, mfspr(SPRN_DBCR0) | DBCR0_IC);
 				linux_regs->msr |= MSR_DE;
-				current->thread.dbcr0 |= (DBCR0_IDM | DBCR0_IC);
 #else
 				linux_regs->msr |= MSR_SE;
 #endif

-- 
Tom Rini
http://gate.crashing.org/~trini/

  parent reply	other threads:[~2004-10-30 19:05 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-29 18:32 [patch 1/8] A different KGDB stub for -mm Tom Rini
2004-10-29 18:33 ` [patch 2/8] KGDB support for i386 Tom Rini
2004-10-29 18:33   ` [patch 3/8] KGDB support for ppc32 Tom Rini
2004-10-29 18:33     ` [patch 4/8] 8250 uart driver for KGDB Tom Rini
2004-10-29 18:33       ` [patch 5/8] KGDB support for MIPS Tom Rini
2004-10-29 18:34         ` [patch 6/8] KGDB support for ia64 Tom Rini
2004-10-29 18:34           ` [patch 7/8] KGDB support for x86_64 Tom Rini
2004-10-29 18:34             ` [patch 8/8] KGDB over ethernet driver Tom Rini
2004-10-29 23:13             ` [patch 7/8] KGDB support for x86_64 Andi Kleen
2004-10-30 19:05     ` Tom Rini [this message]
2004-10-29 18:35 ` [patch 1/8] A different KGDB stub for -mm Tom Rini
2004-10-29 19:53 ` Tom Rini

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=20041030190517.GG15699@smtp.west.cox.net \
    --to=trini@kernel.crashing.org \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mporter@kernel.crashing.org \
    --cc=takeharu1219@ybb.ne.jp \
    /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 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.