diff options
author | David Daney <ddaney@avtrex.com> | 2008-09-23 03:05:54 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2008-10-11 11:18:56 -0400 |
commit | 6aa3524c182c01b8b8b7c21c4da20c742a9b4d86 (patch) | |
tree | 245fc4e9f26ad9e7a95e83087bfcc79528d1352e /arch/mips/include/asm/cpu-info.h | |
parent | 8192c9ea9ac44213d1266ecb64615519443979b3 (diff) |
MIPS: Add HARDWARE_WATCHPOINTS definitions and support code.
This is the main support code for the patch. Here we just add the
code, the following patches hook it up.
Signed-off-by: David Daney <ddaney@avtrex.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
create mode 100644 arch/mips/include/asm/watch.h
create mode 100644 arch/mips/kernel/watch.c
Diffstat (limited to 'arch/mips/include/asm/cpu-info.h')
-rw-r--r-- | arch/mips/include/asm/cpu-info.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/mips/include/asm/cpu-info.h b/arch/mips/include/asm/cpu-info.h index 2de73dbb2e9e..744cd8fb107f 100644 --- a/arch/mips/include/asm/cpu-info.h +++ b/arch/mips/include/asm/cpu-info.h | |||
@@ -12,6 +12,8 @@ | |||
12 | #ifndef __ASM_CPU_INFO_H | 12 | #ifndef __ASM_CPU_INFO_H |
13 | #define __ASM_CPU_INFO_H | 13 | #define __ASM_CPU_INFO_H |
14 | 14 | ||
15 | #include <linux/types.h> | ||
16 | |||
15 | #include <asm/cache.h> | 17 | #include <asm/cache.h> |
16 | 18 | ||
17 | /* | 19 | /* |
@@ -69,6 +71,10 @@ struct cpuinfo_mips { | |||
69 | int tc_id; /* Thread Context number */ | 71 | int tc_id; /* Thread Context number */ |
70 | #endif | 72 | #endif |
71 | void *data; /* Additional data */ | 73 | void *data; /* Additional data */ |
74 | unsigned int watch_reg_count; /* Number that exist */ | ||
75 | unsigned int watch_reg_use_cnt; /* Usable by ptrace */ | ||
76 | #define NUM_WATCH_REGS 4 | ||
77 | u16 watch_reg_masks[NUM_WATCH_REGS]; | ||
72 | } __attribute__((aligned(SMP_CACHE_BYTES))); | 78 | } __attribute__((aligned(SMP_CACHE_BYTES))); |
73 | 79 | ||
74 | extern struct cpuinfo_mips cpu_data[]; | 80 | extern struct cpuinfo_mips cpu_data[]; |