xref: /openbmc/linux/arch/xtensa/include/asm/shmparam.h (revision 367b8112)
1367b8112SChris Zankel /*
2367b8112SChris Zankel  * include/asm-xtensa/shmparam.h
3367b8112SChris Zankel  *
4367b8112SChris Zankel  * This file is subject to the terms and conditions of the GNU General
5367b8112SChris Zankel  * Public License.  See the file "COPYING" in the main directory of
6367b8112SChris Zankel  * this archive for more details.
7367b8112SChris Zankel  */
8367b8112SChris Zankel 
9367b8112SChris Zankel #ifndef _XTENSA_SHMPARAM_H
10367b8112SChris Zankel #define _XTENSA_SHMPARAM_H
11367b8112SChris Zankel 
12367b8112SChris Zankel /*
13367b8112SChris Zankel  * Xtensa can have variable size caches, and if
14367b8112SChris Zankel  * the size of single way is larger than the page size,
15367b8112SChris Zankel  * then we have to start worrying about cache aliasing
16367b8112SChris Zankel  * problems.
17367b8112SChris Zankel  */
18367b8112SChris Zankel 
19367b8112SChris Zankel #define SHMLBA	((PAGE_SIZE > DCACHE_WAY_SIZE)? PAGE_SIZE : DCACHE_WAY_SIZE)
20367b8112SChris Zankel 
21367b8112SChris Zankel #endif /* _XTENSA_SHMPARAM_H */
22