Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 73090
b: refs/heads/master
c: 6dc8087
h: refs/heads/master
v: v3
  • Loading branch information
Adrian Bunk authored and Paul Mundt committed Oct 30, 2007
1 parent 92bb606 commit 55b6ee2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cbd627a44928ba20b5c22b21b8ce2be27733a9d7
refs/heads/master: 6dc8087ca5116f25cdc36a16fdfb18a10824952e
5 changes: 3 additions & 2 deletions trunk/include/asm-sh64/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ static inline void dma_free_coherent(struct device *dev, size_t size,
static inline void dma_cache_sync(struct device *dev, void *vaddr, size_t size,
enum dma_data_direction dir)
{
unsigned long s = (unsigned long) vaddr & L1_CACHE_ALIGN_MASK;
unsigned long e = (vaddr + size) & L1_CACHE_ALIGN_MASK;
unsigned long start = (unsigned long) vaddr;
unsigned long s = start & L1_CACHE_ALIGN_MASK;
unsigned long e = (start + size) & L1_CACHE_ALIGN_MASK;

for (; s <= e; s += L1_CACHE_BYTES)
asm volatile ("ocbp %0, 0" : : "r" (s));
Expand Down

0 comments on commit 55b6ee2

Please sign in to comment.