* [PATCH 19/21] KGDB: pad pt_regs on MIPS64 for function arguments in an exception
@ 2007-10-15 18:33 Jason Wessel
0 siblings, 0 replies; only message in thread
From: Jason Wessel @ 2007-10-15 18:33 UTC (permalink / raw)
To: linux-kernel; +Cc: ralf
[-- Attachment #1: Type: text/plain, Size: 57 bytes --]
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
[-- Attachment #2: mips64_pt_regs_padding.patch --]
[-- Type: text/x-patch, Size: 957 bytes --]
mips64_pt_regs_padding.patch
From: Jason Wessel <jason.wessel@windriver.com>
CC: ralf@linux-mips.org
Subject: [PATCH] pad pt_regs on MIPS64 for function arguments in an exception
When using KGDB the pt_regs structure has the function arguments saved
to the stack. 48 bytes are required for MIPS 64 for this purpose.
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
---
include/asm-mips/ptrace.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: linux-2.6.21.1/include/asm-mips/ptrace.h
===================================================================
--- linux-2.6.21.1.orig/include/asm-mips/ptrace.h
+++ linux-2.6.21.1/include/asm-mips/ptrace.h
@@ -28,7 +28,7 @@
* system call/exception. As usual the registers k0/k1 aren't being saved.
*/
struct pt_regs {
-#ifdef CONFIG_32BIT
+#if defined(CONFIG_32BIT) || defined(CONFIG_KGDB)
/* Pad bytes for argument save space on the stack. */
unsigned long pad0[6];
#endif
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-10-15 18:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-15 18:33 [PATCH 19/21] KGDB: pad pt_regs on MIPS64 for function arguments in an exception Jason Wessel
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.