mirror of
https://github.com/torvalds/linux.git
synced 2024-11-02 10:11:36 +00:00
[Blackfin] arch: Fix bug - kernel build with Debug option enabled fails to boot up
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>
This commit is contained in:
parent
03c5732855
commit
96a5c6f9be
@ -42,6 +42,7 @@ void bfin_icache_init(void)
|
|||||||
ctrl = bfin_read_IMEM_CONTROL();
|
ctrl = bfin_read_IMEM_CONTROL();
|
||||||
ctrl |= IMC | ENICPLB;
|
ctrl |= IMC | ENICPLB;
|
||||||
bfin_write_IMEM_CONTROL(ctrl);
|
bfin_write_IMEM_CONTROL(ctrl);
|
||||||
|
SSYNC();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -63,5 +64,6 @@ void bfin_dcache_init(void)
|
|||||||
ctrl = bfin_read_DMEM_CONTROL();
|
ctrl = bfin_read_DMEM_CONTROL();
|
||||||
ctrl |= DMEM_CNTR;
|
ctrl |= DMEM_CNTR;
|
||||||
bfin_write_DMEM_CONTROL(ctrl);
|
bfin_write_DMEM_CONTROL(ctrl);
|
||||||
|
SSYNC();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user