1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright (C) 2017 Chen Liqin <liqin.chen@sunplusct.com>
4 * Copyright (C) 2012 Regents of the University of California
7 #ifndef _ASM_RISCV_CACHE_H
8 #define _ASM_RISCV_CACHE_H
10 #define L1_CACHE_SHIFT 6
12 #define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)
15 * RISC-V requires the stack pointer to be 16-byte aligned, so ensure that
16 * the flat loader aligns it accordingly.
19 #define ARCH_SLAB_MINALIGN 16
22 #endif /* _ASM_RISCV_CACHE_H */