blob: 9b58b104559ee8c535d99a9ce63a93a29c09cfa9 [file] [log] [blame]
David Brazdil0f672f62019-12-10 10:32:29 +00001/* SPDX-License-Identifier: GPL-2.0-only */
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00002/*
3 * Copyright (C) 2017 Chen Liqin <liqin.chen@sunplusct.com>
4 * Copyright (C) 2012 Regents of the University of California
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00005 */
6
7#ifndef _ASM_RISCV_CACHE_H
8#define _ASM_RISCV_CACHE_H
9
10#define L1_CACHE_SHIFT 6
11
12#define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)
13
Olivier Deprez157378f2022-04-04 15:47:50 +020014/*
15 * RISC-V requires the stack pointer to be 16-byte aligned, so ensure that
16 * the flat loader aligns it accordingly.
17 */
18#ifndef CONFIG_MMU
19#define ARCH_SLAB_MINALIGN 16
20#endif
21
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000022#endif /* _ASM_RISCV_CACHE_H */