OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
65d517e
)
sh64: Move from P1SEG to CAC_ADDR for consistent sync.
author
Paul Mundt
<lethal@linux-sh.org>
Tue, 31 May 2011 05:38:29 +0000
(14:38 +0900)
committer
Paul Mundt
<lethal@linux-sh.org>
Tue, 31 May 2011 05:38:29 +0000
(14:38 +0900)
sh64 doesn't define a P1SEGADDR, resulting in a build failure. The proper
mapping can be attained for both sh32 and 64 via the CAC_ADDR macro, so
switch to that instead.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/mm/consistent.c
patch
|
blob
|
history
diff --git
a/arch/sh/mm/consistent.c
b/arch/sh/mm/consistent.c
index
40733a9
..
f251b5f
100644
(file)
--- a/
arch/sh/mm/consistent.c
+++ b/
arch/sh/mm/consistent.c
@@
-82,7
+82,7
@@
void dma_cache_sync(struct device *dev, void *vaddr, size_t size,
void *addr;
addr = __in_29bit_mode() ?
- (void *)
P1SEG
ADDR((unsigned long)vaddr) : vaddr;
+ (void *)
CAC_
ADDR((unsigned long)vaddr) : vaddr;
switch (direction) {
case DMA_FROM_DEVICE: /* invalidate only */