Skip to content

Commit

Permalink
sh64: Move from P1SEG to CAC_ADDR for consistent sync.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul Mundt committed May 31, 2011
1 parent 65d517e commit 3f9b852
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/sh/mm/consistent.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ void dma_cache_sync(struct device *dev, void *vaddr, size_t size,
void *addr;

addr = __in_29bit_mode() ?
(void *)P1SEGADDR((unsigned long)vaddr) : vaddr;
(void *)CAC_ADDR((unsigned long)vaddr) : vaddr;

switch (direction) {
case DMA_FROM_DEVICE: /* invalidate only */
Expand Down

0 comments on commit 3f9b852

Please sign in to comment.