]> git.baikalelectronics.ru Git - kernel.git/commit
hw-breakpoints: prepare the code for Hardware Breakpoint interfaces
authorK.Prasad <prasad@linux.vnet.ibm.com>
Mon, 1 Jun 2009 18:13:10 +0000 (23:43 +0530)
committerFrederic Weisbecker <fweisbec@gmail.com>
Tue, 2 Jun 2009 20:46:57 +0000 (22:46 +0200)
commit7fdab3ac90e50c15a87cd7fb1ba52b80da0b0bc0
treeb8cff4bd7a5b42a723e26d69cce4f3030bf68e62
parent683c1b09c345c8c3a33a65313e6e29cd3e9fea2a
hw-breakpoints: prepare the code for Hardware Breakpoint interfaces

The generic hardware breakpoint interface provides an abstraction of
hardware breakpoints in front of specific arch implementations for both kernel
and user side breakpoints.
This includes execution breakpoints and read/write breakpoints, also known as
"watchpoints".

This patch introduces header files containing constants, structure definitions
and declaration of functions used by the hardware breakpoint core and x86
specific code.
It also introduces an array based storage for the debug-register values in
'struct thread_struct', while modifying all users of debugreg<n> member in the
structure.

[ Impact: add headers for new hardware breakpoint interface ]

Original-patch-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: K.Prasad <prasad@linux.vnet.ibm.com>
Reviewed-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
arch/x86/include/asm/a.out-core.h
arch/x86/include/asm/debugreg.h
arch/x86/include/asm/hw_breakpoint.h [new file with mode: 0644]
arch/x86/include/asm/processor.h
arch/x86/kernel/process.c
arch/x86/kernel/ptrace.c
arch/x86/power/cpu_32.c
arch/x86/power/cpu_64.c
include/asm-generic/hw_breakpoint.h [new file with mode: 0644]