linux-mips
[Top] [All Lists]

Patch [1/6] MIPS: Add HARDWARE_WATCHPOINTS configure option.

To: linux-mips@linux-mips.org
Subject: Patch [1/6] MIPS: Add HARDWARE_WATCHPOINTS configure option.
From: David Daney <ddaney@avtrex.com>
Date: Thu, 28 Aug 2008 14:45:05 -0700
Cc: linux-kernel@vger.kernel.org
In-reply-to: <48B71ADD.601@avtrex.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <48B71ADD.601@avtrex.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Thunderbird 2.0.0.16 (X11/20080723)
This is automatically set for all MIPS32 and MIPS64 processors.

Signed-off-by: David Daney <ddaney@avtrex.com>
---
 arch/mips/Kconfig |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index 4da736e..f5b3fca 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -1272,6 +1272,13 @@ config CPU_SUPPORTS_32BIT_KERNEL
 config CPU_SUPPORTS_64BIT_KERNEL
        bool
 
+#
+# Set to y for ptrace access to watch registers.
+#
+config HARDWARE_WATCHPOINTS
+       bool
+       default y if CPU_MIPS32 || CPU_MIPS64
+
 menu "Kernel type"
 
 choice
-- 
1.5.5.1



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