On Mon, 2007-12-17 at 15:41 -0800, Michael Snyder wrote:
> Hi,
>
> The patch file "mips-lite.patch" has a reference to CONFIG_MIPS64
> (for arch/mips/kernel/kgdb-jmp.c and kgdb-setjmp.S).
>
> As nearly as I and my colleagues can tell, there is no such
> config variable. We think it should probably be CONFIG_64BIT
> (for when the kernel is configured to run in 64 bit mode).
>
> As currently written, the longjmp fails for a 64-bit kernel.
> We've tried substituting CONFIG_64BIT, and it makes it work.
>
> What do you folks think?
>
> Michael Snyder
Here it is in the form of a patch ;-)
2007-12-11 Jim Wilson <[EMAIL PROTECTED]>
* kgdb-jmp.c: Use CONFIG_64BIT not CONFIG_MIPS64.
* kgdb-setjmp.S: Use CONFIG_64BIT not CONFIG_MIPS64.
Index: uncollapsed/arch/mips/kernel/kgdb-jmp.c
===================================================================
--- uncollapsed.orig/arch/mips/kernel/kgdb-jmp.c
+++ uncollapsed/arch/mips/kernel/kgdb-jmp.c
@@ -19,7 +19,7 @@
#include <linux/kgdb.h>
#include <asm/interrupt.h>
-#ifdef CONFIG_MIPS64
+#ifdef CONFIG_64BIT
/*
* MIPS 64-bit
*/
Index: uncollapsed/arch/mips/kernel/kgdb-setjmp.S
===================================================================
--- uncollapsed.orig/arch/mips/kernel/kgdb-setjmp.S
+++ uncollapsed/arch/mips/kernel/kgdb-setjmp.S
@@ -22,7 +22,7 @@
ENTRY (kgdb_fault_setjmp)
move a1, sp
move a2, fp
-#ifdef CONFIG_MIPS64
+#ifdef CONFIG_64BIT
nop
#endif
j kgdb_fault_setjmp_aux
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Kgdb-bugreport mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport