cacheflush.h (4b4193256c8d3bc3a5397b5cd9494c2ad386317d) cacheflush.h (1631ba1259d6d7f49b6028f2a1a0fa02be1c522a)
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * Copyright (C) 2015 Regents of the University of California
4 */
5
6#ifndef _ASM_RISCV_CACHEFLUSH_H
7#define _ASM_RISCV_CACHEFLUSH_H
8

--- 28 unchanged lines hidden (view full) ---

37
38#else /* CONFIG_SMP */
39
40void flush_icache_all(void);
41void flush_icache_mm(struct mm_struct *mm, bool local);
42
43#endif /* CONFIG_SMP */
44
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * Copyright (C) 2015 Regents of the University of California
4 */
5
6#ifndef _ASM_RISCV_CACHEFLUSH_H
7#define _ASM_RISCV_CACHEFLUSH_H
8

--- 28 unchanged lines hidden (view full) ---

37
38#else /* CONFIG_SMP */
39
40void flush_icache_all(void);
41void flush_icache_mm(struct mm_struct *mm, bool local);
42
43#endif /* CONFIG_SMP */
44
45#ifdef CONFIG_RISCV_ISA_ZICBOM
46void riscv_init_cbom_blocksize(void);
47#else
48static inline void riscv_init_cbom_blocksize(void) { }
49#endif
50
51#ifdef CONFIG_RISCV_DMA_NONCOHERENT
52void riscv_noncoherent_supported(void);
53#endif
54
45/*
46 * Bits in sys_riscv_flush_icache()'s flags argument.
47 */
48#define SYS_RISCV_FLUSH_ICACHE_LOCAL 1UL
49#define SYS_RISCV_FLUSH_ICACHE_ALL (SYS_RISCV_FLUSH_ICACHE_LOCAL)
50
51#include <asm-generic/cacheflush.h>
52
53#endif /* _ASM_RISCV_CACHEFLUSH_H */
55/*
56 * Bits in sys_riscv_flush_icache()'s flags argument.
57 */
58#define SYS_RISCV_FLUSH_ICACHE_LOCAL 1UL
59#define SYS_RISCV_FLUSH_ICACHE_ALL (SYS_RISCV_FLUSH_ICACHE_LOCAL)
60
61#include <asm-generic/cacheflush.h>
62
63#endif /* _ASM_RISCV_CACHEFLUSH_H */