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