Skip to content

Commit

Permalink
Blackfin arch: Load P0 before storing through it
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Bernd Schmidt authored and Bryan Wu committed Jul 24, 2007
1 parent 64c5cb8 commit f1b927d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/blackfin/mach-common/cacheinit.S
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f1b927d

Please sign in to comment.