From: Robin Getz Date: Tue, 7 Jul 2009 02:47:14 +0000 (+0000) Subject: Blackfin: fix handling of IPEND in interrupt context save X-Git-Tag: v2.6.31-rc4~22^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ad863a9dc9887330b2ab753323063865c59d8db6;p=platform%2Fupstream%2Fkernel-adaptation-pc.git Blackfin: fix handling of IPEND in interrupt context save The interrupt context save logic incorrectly stored the address of the IPEND register rather than its value due to a missing dereference. While we're here, also enable this code for all kernel debugging scenarios and not just when KGDB is enabled. Signed-off-by: Robin Getz Signed-off-by: Mike Frysinger --- diff --git a/arch/blackfin/include/asm/context.S b/arch/blackfin/include/asm/context.S index 16561ab..f8a664f 100644 --- a/arch/blackfin/include/asm/context.S +++ b/arch/blackfin/include/asm/context.S @@ -223,9 +223,10 @@ [--sp] = RETN; [--sp] = RETE; [--sp] = SEQSTAT; -#ifdef CONFIG_KGDB - r1.l = lo(IPEND); - r1.h = hi(IPEND); +#ifdef CONFIG_DEBUG_KERNEL + p1.l = lo(IPEND); + p1.h = hi(IPEND); + r1 = [p1]; [--sp] = r1; #else [--sp] = r0; /* Skip IPEND as well. */