Signed-off-by: Jason Wessel <[email protected]>
mips64_pt_regs_padding.patch
From: Jason Wessel <[email protected]>
CC: [email protected]
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 <[email protected]>
---
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
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]