xref: /openbmc/u-boot/arch/sandbox/include/asm/cache.h (revision 78a88f79)
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright (c) 2011 The Chromium OS Authors.
4  */
5 
6 #ifndef __SANDBOX_CACHE_H__
7 #define __SANDBOX_CACHE_H__
8 
9 /*
10  * For native compilation of the sandbox we should still align
11  * the contents of stack buffers to something reasonable.  The
12  * GCC macro __BIGGEST_ALIGNMENT__ is defined to be the maximum
13  * required alignment for any basic type.  This seems reasonable.
14  * This is however GCC specific so if we don't have that available
15  * assume that 16 is large enough.
16  */
17 #ifdef __BIGGEST_ALIGNMENT__
18 #define ARCH_DMA_MINALIGN	__BIGGEST_ALIGNMENT__
19 #else
20 #define ARCH_DMA_MINALIGN	16
21 #endif
22 #define CONFIG_SYS_CACHELINE_SIZE	ARCH_DMA_MINALIGN
23 
24 #endif /* __SANDBOX_CACHE_H__ */
25