diff options
Diffstat (limited to 'arch/x86/include/asm/debugreg.h')
| -rw-r--r-- | arch/x86/include/asm/debugreg.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/arch/x86/include/asm/debugreg.h b/arch/x86/include/asm/debugreg.h index 23439fbb1d0..9a3333c91f9 100644 --- a/arch/x86/include/asm/debugreg.h +++ b/arch/x86/include/asm/debugreg.h | |||
| @@ -75,13 +75,8 @@ | |||
| 75 | */ | 75 | */ |
| 76 | #ifdef __KERNEL__ | 76 | #ifdef __KERNEL__ |
| 77 | 77 | ||
| 78 | /* For process management */ | 78 | DECLARE_PER_CPU(unsigned long, dr7); |
| 79 | extern void flush_thread_hw_breakpoint(struct task_struct *tsk); | ||
| 80 | extern int copy_thread_hw_breakpoint(struct task_struct *tsk, | ||
| 81 | struct task_struct *child, unsigned long clone_flags); | ||
| 82 | 79 | ||
| 83 | /* For CPU management */ | ||
| 84 | extern void load_debug_registers(void); | ||
| 85 | static inline void hw_breakpoint_disable(void) | 80 | static inline void hw_breakpoint_disable(void) |
| 86 | { | 81 | { |
| 87 | /* Zero the control register for HW Breakpoint */ | 82 | /* Zero the control register for HW Breakpoint */ |
| @@ -94,6 +89,10 @@ static inline void hw_breakpoint_disable(void) | |||
| 94 | set_debugreg(0UL, 3); | 89 | set_debugreg(0UL, 3); |
| 95 | } | 90 | } |
| 96 | 91 | ||
| 92 | #ifdef CONFIG_KVM | ||
| 93 | extern void hw_breakpoint_restore(void); | ||
| 94 | #endif | ||
| 95 | |||
| 97 | #endif /* __KERNEL__ */ | 96 | #endif /* __KERNEL__ */ |
| 98 | 97 | ||
| 99 | #endif /* _ASM_X86_DEBUGREG_H */ | 98 | #endif /* _ASM_X86_DEBUGREG_H */ |
