linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Another fix for xmon on non-standard MMU machines
@ 2001-09-10  9:47 David Gibson
       [not found] ` <20010910160600.21153@smtp.adsl.oleane.com>
  0 siblings, 1 reply; 4+ messages in thread
From: David Gibson @ 2001-09-10  9:47 UTC (permalink / raw)
  To: linuxppc-embedded; +Cc: Paul Mackerras


This patch stops xmon from attempting to print the segment registers
on machines where CONFIG_PPC_STD_MMU is not set.  This prevents xmon
from causing an exception when the 'S' command is used on the 4xx (and
others).

diff -urN ../linuxppc_2_4_devel/arch/ppc/xmon/xmon.c linux-bungo/arch/ppc/xmon/xmon.c
--- ../linuxppc_2_4_devel/arch/ppc/xmon/xmon.c	Mon Sep 10 11:11:43 2001
+++ linux-bungo/arch/ppc/xmon/xmon.c	Mon Sep 10 19:14:40 2001
@@ -847,10 +847,12 @@
 		printf("sprg0-3 = %x %x %x %x\n", get_sprg0(), get_sprg1(),
 		       get_sprg2(), get_sprg3());
 		printf("srr0 = %x, srr1 = %x\n", get_srr0(), get_srr1());
+#ifdef CONFIG_PPC_STD_MMU
 		printf("sr0-15 =");
 		for (i = 0; i < 16; ++i)
 			printf(" %x", get_sr(i));
 		printf("\n");
+#endif
 		asm("mr %0,1" : "=r" (i) :);
 		printf("sp = %x ", i);
 		asm("mr %0,2" : "=r" (i) :);


--
David Gibson			| For every complex problem there is a
david@gibson.dropbear.id.au	| solution which is simple, neat and
				| wrong.  -- H.L. Mencken
http://www.ozlabs.org/people/dgibson


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

end of thread, other threads:[~2001-09-11  1:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-09-10  9:47 Another fix for xmon on non-standard MMU machines David Gibson
     [not found] ` <20010910160600.21153@smtp.adsl.oleane.com>
2001-09-10 23:17   ` David Gibson
2001-09-11  0:16     ` Dan Malek
2001-09-11  1:04       ` David Gibson

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).