Commit ad863a9d authored by Robin Getz's avatar Robin Getz Committed by Mike Frysinger

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: default avatarRobin Getz <robin.getz@analog.com>
Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
parent 3a920acc
...@@ -223,9 +223,10 @@ ...@@ -223,9 +223,10 @@
[--sp] = RETN; [--sp] = RETN;
[--sp] = RETE; [--sp] = RETE;
[--sp] = SEQSTAT; [--sp] = SEQSTAT;
#ifdef CONFIG_KGDB #ifdef CONFIG_DEBUG_KERNEL
r1.l = lo(IPEND); p1.l = lo(IPEND);
r1.h = hi(IPEND); p1.h = hi(IPEND);
r1 = [p1];
[--sp] = r1; [--sp] = r1;
#else #else
[--sp] = r0; /* Skip IPEND as well. */ [--sp] = r0; /* Skip IPEND as well. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment