aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernd Schmidt <bernd.schmidt@analog.com>2007-07-24 18:17:15 +0800
committerBryan Wu <bryan.wu@analog.com>2007-07-24 18:17:15 +0800
commitf1b927dc851a2eb1e13a8d21aca18036f6cb8629 (patch)
treefd4ee060866ae7473bca57497c282459470dcc5d
parent64c5cb8608a8b393bfc80214e4593738b60638c5 (diff)
downloadkernel_samsung_smdk4412-f1b927dc851a2eb1e13a8d21aca18036f6cb8629.zip
kernel_samsung_smdk4412-f1b927dc851a2eb1e13a8d21aca18036f6cb8629.tar.gz
kernel_samsung_smdk4412-f1b927dc851a2eb1e13a8d21aca18036f6cb8629.tar.bz2
Blackfin arch: Load P0 before storing through it
Fortunately this function is only used on old 533 revisions. Signed-off-by: Bernd Schmidt <bernd.schmidt@analog.com> Signed-off-by: Bryan Wu <bryan.wu@analog.com>
-rw-r--r--arch/blackfin/mach-common/cacheinit.S3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/blackfin/mach-common/cacheinit.S b/arch/blackfin/mach-common/cacheinit.S
index 9d47562..5be6b97 100644
--- a/arch/blackfin/mach-common/cacheinit.S
+++ b/arch/blackfin/mach-common/cacheinit.S
@@ -60,6 +60,9 @@ ENDPROC(_bfin_write_IMEM_CONTROL)
#if defined(CONFIG_BLKFIN_DCACHE)
ENTRY(_bfin_write_DMEM_CONTROL)
+ P0.l = (DMEM_CONTROL & 0xFFFF);
+ P0.h = (DMEM_CONTROL >> 16);
+
CLI R1;
SSYNC; /* SSYNC required before writing to DMEM_CONTROL. */
.align 8;