linux-mips
[Top] [All Lists]

[PATCH 3/3] kgdb, mips: pad pt_regs on MIPS64 for function arguments in

To: linux-kernel@vger.kernel.org
Subject: [PATCH 3/3] kgdb, mips: pad pt_regs on MIPS64 for function arguments in an exception
From: Jason Wessel <jason.wessel@windriver.com>
Date: Fri, 18 Jul 2008 12:08:48 -0500
Cc: ralf@linux-mips.org, linux-mips@linux-mips.org, Jason Wessel <jason.wessel@windriver.com>
In-reply-to: <1216400928-29097-3-git-send-email-jason.wessel@windriver.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <1216400928-29097-1-git-send-email-jason.wessel@windriver.com> <1216400928-29097-2-git-send-email-jason.wessel@windriver.com> <1216400928-29097-3-git-send-email-jason.wessel@windriver.com>
Sender: linux-mips-bounce@linux-mips.org
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 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/asm-mips/ptrace.h b/include/asm-mips/ptrace.h
index 786f7e3..c3f535f 100644
--- a/include/asm-mips/ptrace.h
+++ b/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
-- 
1.5.5.1


<Prev in Thread] Current Thread [Next in Thread>