1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2022 Ventana Micro Systems Inc.
6 #include <linux/export.h>
7 #include <linux/libnvdimm.h>
9 #include <asm/cacheflush.h>
11 void arch_wb_cache_pmem(void *addr, size_t size)
13 ALT_CMO_OP(clean, addr, size, riscv_cbom_block_size);
15 EXPORT_SYMBOL_GPL(arch_wb_cache_pmem);
17 void arch_invalidate_pmem(void *addr, size_t size)
19 ALT_CMO_OP(inval, addr, size, riscv_cbom_block_size);
21 EXPORT_SYMBOL_GPL(arch_invalidate_pmem);