| To: | linux-mips@linux-mips.org |
|---|---|
| Subject: | [Patch 5/6] MIPS: Scheduler support for HARDWARE_WATCHPOINTS. |
| From: | David Daney <ddaney@avtrex.com> |
| Date: | Wed, 10 Sep 2008 23:01:59 -0700 |
| Cc: | linux-kernel@vger.kernel.org |
| In-reply-to: | <48C8ADEF.9020305@avtrex.com> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <48C8ADEF.9020305@avtrex.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
| User-agent: | Thunderbird 2.0.0.16 (X11/20080723) |
Scheduler support for HARDWARE_WATCHPOINTS.
Here we hook up the scheduler. Whenever we switch to a new process,
we check to see if the watch registers should be installed, and do it
if needed.
Signed-off-by: David Daney <ddaney@avtrex.com>
---
include/asm-mips/system.h | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/include/asm-mips/system.h b/include/asm-mips/system.h
index a944eda..cd30f83 100644
--- a/include/asm-mips/system.h
+++ b/include/asm-mips/system.h
@@ -20,6 +20,7 @@
#include <asm/cmpxchg.h>
#include <asm/cpu-features.h>
#include <asm/dsp.h>
+#include <asm/watch.h>
#include <asm/war.h>
@@ -76,6 +77,7 @@ do {
\
__restore_dsp(current); \
if (cpu_has_userlocal) \
write_c0_userlocal(current_thread_info()->tp_value); \
+ __restore_watch(); \
} while (0)
static inline unsigned long __xchg_u32(volatile int * m, unsigned int val)
--
1.5.5.1
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [Patch 4/6] MIPS: Watch exception handling for HARDWARE_WATCHPOINTS., David Daney |
|---|---|
| Next by Date: | [Patch 6/6] MIPS: Ptrace support for HARDWARE_WATCHPOINTS, David Daney |
| Previous by Thread: | [Patch 4/6] MIPS: Watch exception handling for HARDWARE_WATCHPOINTS., David Daney |
| Next by Thread: | [Patch 6/6] MIPS: Ptrace support for HARDWARE_WATCHPOINTS, David Daney |
| Indexes: | [Date] [Thread] [Top] [All Lists] |