xref: /openbmc/linux/arch/xtensa/include/asm/shmparam.h (revision e5451c8f8330e03ad3cfa16048b4daf961af434f)
1*367b8112SChris Zankel /*
2*367b8112SChris Zankel  * include/asm-xtensa/shmparam.h
3*367b8112SChris Zankel  *
4*367b8112SChris Zankel  * This file is subject to the terms and conditions of the GNU General
5*367b8112SChris Zankel  * Public License.  See the file "COPYING" in the main directory of
6*367b8112SChris Zankel  * this archive for more details.
7*367b8112SChris Zankel  */
8*367b8112SChris Zankel 
9*367b8112SChris Zankel #ifndef _XTENSA_SHMPARAM_H
10*367b8112SChris Zankel #define _XTENSA_SHMPARAM_H
11*367b8112SChris Zankel 
12*367b8112SChris Zankel /*
13*367b8112SChris Zankel  * Xtensa can have variable size caches, and if
14*367b8112SChris Zankel  * the size of single way is larger than the page size,
15*367b8112SChris Zankel  * then we have to start worrying about cache aliasing
16*367b8112SChris Zankel  * problems.
17*367b8112SChris Zankel  */
18*367b8112SChris Zankel 
19*367b8112SChris Zankel #define SHMLBA	((PAGE_SIZE > DCACHE_WAY_SIZE)? PAGE_SIZE : DCACHE_WAY_SIZE)
20*367b8112SChris Zankel 
21*367b8112SChris Zankel #endif /* _XTENSA_SHMPARAM_H */
22