summaryrefslogtreecommitdiff
path: root/arch/blackfin/mach-common/head.S
diff options
context:
space:
mode:
authorRobin Getz <rgetz@blackfin.uclinux.org>2008-10-08 14:03:33 +0400
committerBryan Wu <cooloney@kernel.org>2008-10-08 14:03:33 +0400
commit9df10281e1c03b1c04d17f387bc59eb932c0bb87 (patch)
tree53b59aa5f958964c6e846d01fe7ed688f4884088 /arch/blackfin/mach-common/head.S
parent7eb2c23f602ab35c5f4227bc87945a3c78a14150 (diff)
downloadlinux-9df10281e1c03b1c04d17f387bc59eb932c0bb87.tar.xz
Blackfin arch: Use DTEST rather than DMA to poke at L1 SRAM during exception context
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.S10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/blackfin/mach-common/head.S b/arch/blackfin/mach-common/head.S
index eb9eef0e23b7..3069df580729 100644
--- a/arch/blackfin/mach-common/head.S
+++ b/arch/blackfin/mach-common/head.S
@@ -68,6 +68,16 @@ ENTRY(__start)
M2 = r0;
M3 = r0;
+ /*
+ * Clear ITEST_COMMAND and DTEST_COMMAND registers,
+ * Leaving these as non-zero can confuse the emulator
+ */
+ p0.L = LO(DTEST_COMMAND);
+ p0.H = HI(DTEST_COMMAND);
+ [p0] = R0;
+ [p0 + (ITEST_COMMAND - DTEST_COMMAND)] = R0;
+ CSYNC;
+
trace_buffer_init(p0,r0);
P0 = R1;
R0 = R1;