Prev: [021/139] mac80211: fix PREQ processing and one small bug
Next: [012/139] sh: Enable the mmu in start_secondary()
From: Greg KH on 22 Apr 2010 16:40 2.6.33-stable review patch. If anyone has any objections, please let us know. ------------------ From: Jason Wessel <jason.wessel(a)windriver.com> commit ab310b5edb8b601bcb02491ed6f7676da4fd1757 upstream. It is required to call hw_breakpoint_init() on an attr before using it in any other calls. This fixes the problem where kgdb will sometimes fail to initialize on x86_64. Signed-off-by: Jason Wessel <jason.wessel(a)windriver.com> Cc: Ingo Molnar <mingo(a)elte.hu> LKML-Reference: <1269975907-27602-1-git-send-email-jason.wessel(a)windriver.com> Signed-off-by: Frederic Weisbecker <fweisbec(a)gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh(a)suse.de> --- arch/x86/kernel/kgdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/x86/kernel/kgdb.c +++ b/arch/x86/kernel/kgdb.c @@ -618,8 +618,8 @@ int kgdb_arch_init(void) * portion of kgdb because this operation requires mutexs to * complete. */ + hw_breakpoint_init(&attr); attr.bp_addr = (unsigned long)kgdb_arch_init; - attr.type = PERF_TYPE_BREAKPOINT; attr.bp_len = HW_BREAKPOINT_LEN_1; attr.bp_type = HW_BREAKPOINT_W; attr.disabled = 1; -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |