2 * Copyright (c) 2011 The Chromium OS Authors.
4 * SPDX-License-Identifier: GPL-2.0+
7 #ifndef __SANDBOX_CACHE_H__
8 #define __SANDBOX_CACHE_H__
11 * For native compilation of the sandbox we should still align
12 * the contents of stack buffers to something reasonable. The
13 * GCC macro __BIGGEST_ALIGNMENT__ is defined to be the maximum
14 * required alignment for any basic type. This seems reasonable.
15 * This is however GCC specific so if we don't have that available
16 * assume that 16 is large enough.
18 #ifdef __BIGGEST_ALIGNMENT__
19 #define ARCH_DMA_MINALIGN __BIGGEST_ALIGNMENT__
21 #define ARCH_DMA_MINALIGN 16
23 #define CONFIG_SYS_CACHELINE_SIZE ARCH_DMA_MINALIGN
25 #endif /* __SANDBOX_CACHE_H__ */