summaryrefslogtreecommitdiff
path: root/arch/blackfin/mach-common/head.S
diff options
context:
space:
mode:
authorRobin Getz <rgetz@blackfin.uclinux.org>2008-08-14 06:44:33 (GMT)
committerBryan Wu <cooloney@kernel.org>2008-08-14 06:44:33 (GMT)
commitcd8fb8df1458df7f3b99fd112e722b05f42c64d9 (patch)
tree9cb389a1b61500b6b38752d96b72db23c0590c28 /arch/blackfin/mach-common/head.S
parentee32664da9531329b87aa5109e41e7cc73a04121 (diff)
downloadlinux-cd8fb8df1458df7f3b99fd112e722b05f42c64d9.tar.xz
Blackfin arch: Print out doublefault addresses, so debug can occur
Signed-off-by: Robin Getz <rgetz@blackfin.uclinux.org> Signed-off-by: Bryan Wu <cooloney@kernel.org>
Diffstat (limited to 'arch/blackfin/mach-common/head.S')
-rw-r--r--arch/blackfin/mach-common/head.S6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/blackfin/mach-common/head.S b/arch/blackfin/mach-common/head.S
index 2c69ad4..fb7e2d4 100644
--- a/arch/blackfin/mach-common/head.S
+++ b/arch/blackfin/mach-common/head.S
@@ -90,6 +90,12 @@ ENTRY(__start)
[p0] = R0;
SSYNC;
+ /* Save RETX, in case of doublefault */
+ p0.l = ___retx;
+ p0.h = ___retx;
+ R0 = RETX;
+ [P0] = R0;
+
/* Let each Blackfin family do its own thing */
call _mach_early_start;