diff options
| -rw-r--r-- | arch/blackfin/mach-common/cache.S | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/blackfin/mach-common/cache.S b/arch/blackfin/mach-common/cache.S index db532181fbd..d6780b49524 100644 --- a/arch/blackfin/mach-common/cache.S +++ b/arch/blackfin/mach-common/cache.S | |||
| @@ -25,9 +25,13 @@ | |||
| 25 | */ | 25 | */ |
| 26 | .macro do_flush flushins:req optflushins optnopins label | 26 | .macro do_flush flushins:req optflushins optnopins label |
| 27 | 27 | ||
| 28 | R2 = -L1_CACHE_BYTES; | ||
| 29 | |||
| 30 | /* start = (start & -L1_CACHE_BYTES) */ | ||
| 31 | R0 = R0 & R2; | ||
| 32 | |||
| 28 | /* end = ((end - 1) & -L1_CACHE_BYTES) + L1_CACHE_BYTES; */ | 33 | /* end = ((end - 1) & -L1_CACHE_BYTES) + L1_CACHE_BYTES; */ |
| 29 | R1 += -1; | 34 | R1 += -1; |
| 30 | R2 = -L1_CACHE_BYTES; | ||
| 31 | R1 = R1 & R2; | 35 | R1 = R1 & R2; |
| 32 | R1 += L1_CACHE_BYTES; | 36 | R1 += L1_CACHE_BYTES; |
| 33 | 37 | ||
