/* * Copyright(c) 2017 IBM Corporation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of version 2 of the GNU General Public License as * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. */#include <linux/string.h>#include <linux/export.h>#include <asm/cacheflush.h>/* * CONFIG_ARCH_HAS_PMEM_API symbols */voidarch_wb_cache_pmem(void*addr,size_tsize){unsignedlongstart=(unsignedlong)addr;flush_inval_dcache_range(start,start+size);}EXPORT_SYMBOL(arch_wb_cache_pmem);voidarch_invalidate_pmem(void*addr,size_tsize){unsignedlongstart=(unsignedlong)addr;flush_inval_dcache_range(start,start+size);}EXPORT_SYMBOL(arch_invalidate_pmem);