.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (C) 2017 Chen Liqin <liqin.chen@sunplusct.com> |
---|
3 | 4 | * Copyright (C) 2012 Regents of the University of California |
---|
4 | | - * |
---|
5 | | - * This program is free software; you can redistribute it and/or |
---|
6 | | - * modify it under the terms of the GNU General Public License |
---|
7 | | - * as published by the Free Software Foundation, version 2. |
---|
8 | | - * |
---|
9 | | - * This program is distributed in the hope that it will be useful, |
---|
10 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
11 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
12 | | - * GNU General Public License for more details. |
---|
13 | 5 | */ |
---|
14 | 6 | |
---|
15 | 7 | #ifndef _ASM_RISCV_CACHE_H |
---|
.. | .. |
---|
19 | 11 | |
---|
20 | 12 | #define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT) |
---|
21 | 13 | |
---|
| 14 | +/* |
---|
| 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 | + |
---|
22 | 22 | #endif /* _ASM_RISCV_CACHE_H */ |
---|