hw-breakpoints: cleanup HW Breakpoint registers before kexec
authorK.Prasad <prasad@linux.vnet.ibm.com>
Mon, 1 Jun 2009 18:16:03 +0000 (23:46 +0530)
committerFrederic Weisbecker <fweisbec@gmail.com>
Tue, 2 Jun 2009 20:47:00 +0000 (22:47 +0200)
commit17f557e5b5d43a2af66c969f6560ac7105020672
treea3aab9ccd15dca1a44490a05defb45423a9945d5
parent72f674d203cd230426437cdcf7dd6f681dad8b0d
hw-breakpoints: cleanup HW Breakpoint registers before kexec

This patch disables Hardware breakpoints before doing a 'kexec' on the machine
so that the cpu doesn't keep debug registers values which would be out of
sync for the new image.

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/kernel/machine_kexec_32.c
arch/x86/kernel/machine_kexec_64.c