aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin/kernel/asm-offsets.c
diff options
context:
space:
mode:
authorRobin Getz <robin.getz@analog.com>2007-10-29 18:14:15 +0800
committerBryan Wu <bryan.wu@analog.com>2007-10-29 18:14:15 +0800
commitaa770aa790f3a5f3ff568388d02aea2ef78773ec (patch)
treec100fc10a4cdbd9bc0104846795babcad915dd71 /arch/blackfin/kernel/asm-offsets.c
parentBlackfin arch: fix bug: tell users if the kernel is recovering from a fault condition (diff)
downloadlinux-dev-aa770aa790f3a5f3ff568388d02aea2ef78773ec.tar.xz
linux-dev-aa770aa790f3a5f3ff568388d02aea2ef78773ec.zip
Blackfin arch: Fix random crash issue found by Michael.
This is fixes a problem where we could jump to the wrong address. By doing a "p0 = reti; jump (p0)". If a different, higher level interrupt came in, just before, rather than returning to the calling function, we would return to a random place in the kernel. This very elegant fix from Bernd grabs the return location off the stack, and places it into P0, so when we do a return, it goes to the correct place. Signed-off-by: Robin Getz <robin.getz@analog.com> Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Diffstat (limited to 'arch/blackfin/kernel/asm-offsets.c')
0 files changed, 0 insertions, 0 deletions