Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3f9b8520 authored by Paul Mundt's avatar Paul Mundt
Browse files

sh64: Move from P1SEG to CAC_ADDR for consistent sync.



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: default avatarPaul Mundt <lethal@linux-sh.org>
parent 65d517eb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 */