Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759307AbZDGGic (ORCPT ); Tue, 7 Apr 2009 02:38:32 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758180AbZDGGhA (ORCPT ); Tue, 7 Apr 2009 02:37:00 -0400 Received: from e23smtp09.au.ibm.com ([202.81.31.142]:60270 "EHLO e23smtp09.au.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758746AbZDGGg7 (ORCPT ); Tue, 7 Apr 2009 02:36:59 -0400 Date: Tue, 7 Apr 2009 12:06:46 +0530 From: "K.Prasad" To: Alan Stern Cc: Ingo Molnar , Linux Kernel Mailing List , Andrew Morton , Benjamin Herrenschmidt , Frederic Weisbecker , maneesh@linux.vnet.ibm.com, Roland McGrath , Steven Rostedt , "K.Prasad" Subject: [Patch 09/11] Cleanup HW Breakpoint registers before kexec Message-ID: <20090407063646.GJ17461@in.ibm.com> References: <20090407063058.301701787@prasadkr_t60p.in.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline; filename=modify_kexec_09 User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2005 Lines: 60 From: Alan Stern This patch disables Hardware breakpoints before doing a 'kexec' on the machine. [K.Prasad: Split-out from the bigger patch and minor changes following re-basing] Signed-off-by: K.Prasad Signed-off-by: Alan Stern --- arch/x86/kernel/machine_kexec_32.c | 2 ++ arch/x86/kernel/machine_kexec_64.c | 2 ++ 2 files changed, 4 insertions(+) Index: arch/x86/kernel/machine_kexec_32.c =================================================================== --- arch/x86/kernel/machine_kexec_32.c.orig 2009-04-01 20:53:43.000000000 +0530 +++ arch/x86/kernel/machine_kexec_32.c 2009-04-01 20:54:46.000000000 +0530 @@ -25,6 +25,7 @@ #include #include #include +#include static void set_idt(void *newidt, __u16 limit) { @@ -202,6 +203,7 @@ /* Interrupts aren't acceptable while we reboot */ local_irq_disable(); + hw_breakpoint_disable(); if (image->preserve_context) { #ifdef CONFIG_X86_IO_APIC Index: arch/x86/kernel/machine_kexec_64.c =================================================================== --- arch/x86/kernel/machine_kexec_64.c.orig 2009-04-01 20:53:43.000000000 +0530 +++ arch/x86/kernel/machine_kexec_64.c 2009-04-01 20:54:46.000000000 +0530 @@ -18,6 +18,7 @@ #include #include #include +#include static int init_one_level2_page(struct kimage *image, pgd_t *pgd, unsigned long addr) @@ -282,6 +283,7 @@ /* Interrupts aren't acceptable while we reboot */ local_irq_disable(); + hw_breakpoint_disable(); if (image->preserve_context) { #ifdef CONFIG_X86_IO_APIC -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/