162306a36Sopenharmony_ci/*
262306a36Sopenharmony_ci * include/asm-xtensa/shmparam.h
362306a36Sopenharmony_ci *
462306a36Sopenharmony_ci * This file is subject to the terms and conditions of the GNU General
562306a36Sopenharmony_ci * Public License.  See the file "COPYING" in the main directory of
662306a36Sopenharmony_ci * this archive for more details.
762306a36Sopenharmony_ci */
862306a36Sopenharmony_ci
962306a36Sopenharmony_ci#ifndef _XTENSA_SHMPARAM_H
1062306a36Sopenharmony_ci#define _XTENSA_SHMPARAM_H
1162306a36Sopenharmony_ci
1262306a36Sopenharmony_ci/*
1362306a36Sopenharmony_ci * Xtensa can have variable size caches, and if
1462306a36Sopenharmony_ci * the size of single way is larger than the page size,
1562306a36Sopenharmony_ci * then we have to start worrying about cache aliasing
1662306a36Sopenharmony_ci * problems.
1762306a36Sopenharmony_ci */
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_ci#define SHMLBA	((PAGE_SIZE > DCACHE_WAY_SIZE)? PAGE_SIZE : DCACHE_WAY_SIZE)
2062306a36Sopenharmony_ci
2162306a36Sopenharmony_ci#endif /* _XTENSA_SHMPARAM_H */
22