[Blackfin] arch: Fix bug - kernel build with Debug option enabled fails to boot up
authorMichael Hennerich <michael.hennerich@analog.com>
Tue, 22 Jan 2008 11:23:50 +0000 (19:23 +0800)
committerBryan Wu <bryan.wu@analog.com>
Tue, 22 Jan 2008 11:23:50 +0000 (19:23 +0800)
writes to I/DMEM_CONTROL must be followed by SSYNC

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
arch/blackfin/kernel/cplb-nompu/cacheinit.c

index 62cbba7364b0d066b5559e4f1a7add76567722ef..8a18399f607250e992b6db9e4c78f7a7d70ce4f3 100644 (file)
@@ -42,6 +42,7 @@ void bfin_icache_init(void)
        ctrl = bfin_read_IMEM_CONTROL();
        ctrl |= IMC | ENICPLB;
        bfin_write_IMEM_CONTROL(ctrl);
+       SSYNC();
 }
 #endif
 
@@ -63,5 +64,6 @@ void bfin_dcache_init(void)
        ctrl = bfin_read_DMEM_CONTROL();
        ctrl |= DMEM_CNTR;
        bfin_write_DMEM_CONTROL(ctrl);
+       SSYNC();
 }
 #endif