Blackfin arch: Load P0 before storing through it
authorBernd Schmidt <bernd.schmidt@analog.com>
Tue, 24 Jul 2007 10:17:15 +0000 (18:17 +0800)
committerBryan Wu <bryan.wu@analog.com>
Tue, 24 Jul 2007 10:17:15 +0000 (18:17 +0800)
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>
arch/blackfin/mach-common/cacheinit.S

index 9d47562..5be6b97 100644 (file)
@@ -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;