mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 12:11:40 +00:00
05cdf45747
This configuration is obsolete and likely none is really using it. That's why remove it to simplify code. Note about CONFIG_MMU in hw_exception_handler.S is left intentionally for better comment understanding. Cc: Mike Rapoport <rppt@kernel.org> Cc: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Michal Simek <michal.simek@xilinx.com> Acked-by: Mike Rapoport <rppt@linux.ibm.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Link: https://lore.kernel.org/r/43486cab370e0c0a79860120b71e0caac75a7e44.1606397528.git.michal.simek@xilinx.com
24 lines
605 B
C
24 lines
605 B
C
// SPDX-License-Identifier: GPL-2.0-only
|
|
/*
|
|
* Microblaze support for cache consistent memory.
|
|
* Copyright (C) 2010 Michal Simek <monstr@monstr.eu>
|
|
* Copyright (C) 2010 PetaLogix
|
|
* Copyright (C) 2005 John Williams <jwilliams@itee.uq.edu.au>
|
|
*/
|
|
|
|
#include <linux/kernel.h>
|
|
#include <linux/string.h>
|
|
#include <linux/types.h>
|
|
#include <linux/mm.h>
|
|
#include <linux/init.h>
|
|
#include <linux/dma-map-ops.h>
|
|
#include <asm/cpuinfo.h>
|
|
#include <asm/cacheflush.h>
|
|
|
|
void arch_dma_prep_coherent(struct page *page, size_t size)
|
|
{
|
|
phys_addr_t paddr = page_to_phys(page);
|
|
|
|
flush_dcache_range(paddr, paddr + size);
|
|
}
|