xref: /openbmc/u-boot/arch/sandbox/include/asm/cache.h (revision cceea66bfe1c6c654a1acd27eaf7b63048c97f09)
1*cceea66bSAnton staaf /*
2*cceea66bSAnton staaf  * Copyright (c) 2011 The Chromium OS Authors.
3*cceea66bSAnton staaf  * See file CREDITS for list of people who contributed to this
4*cceea66bSAnton staaf  * project.
5*cceea66bSAnton staaf  *
6*cceea66bSAnton staaf  * This program is free software; you can redistribute it and/or
7*cceea66bSAnton staaf  * modify it under the terms of the GNU General Public License as
8*cceea66bSAnton staaf  * published by the Free Software Foundation; either version 2 of
9*cceea66bSAnton staaf  * the License, or (at your option) any later version.
10*cceea66bSAnton staaf  *
11*cceea66bSAnton staaf  * This program is distributed in the hope that it will be useful,
12*cceea66bSAnton staaf  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13*cceea66bSAnton staaf  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14*cceea66bSAnton staaf  * GNU General Public License for more details.
15*cceea66bSAnton staaf  *
16*cceea66bSAnton staaf  * You should have received a copy of the GNU General Public License
17*cceea66bSAnton staaf  * along with this program; if not, write to the Free Software
18*cceea66bSAnton staaf  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
19*cceea66bSAnton staaf  * MA 02111-1307 USA
20*cceea66bSAnton staaf  */
21*cceea66bSAnton staaf 
22*cceea66bSAnton staaf #ifndef __SANDBOX_CACHE_H__
23*cceea66bSAnton staaf #define __SANDBOX_CACHE_H__
24*cceea66bSAnton staaf 
25*cceea66bSAnton staaf /*
26*cceea66bSAnton staaf  * For native compilation of the sandbox we should still align
27*cceea66bSAnton staaf  * the contents of stack buffers to something reasonable.  The
28*cceea66bSAnton staaf  * GCC macro __BIGGEST_ALIGNMENT__ is defined to be the maximum
29*cceea66bSAnton staaf  * required alignment for any basic type.  This seems reasonable.
30*cceea66bSAnton staaf  */
31*cceea66bSAnton staaf #define ARCH_DMA_MINALIGN	__BIGGEST_ALIGNMENT__
32*cceea66bSAnton staaf 
33*cceea66bSAnton staaf #endif /* __SANDBOX_CACHE_H__ */
34