MOXA linux-2.6.x / linux-2.6.19-uc1 from UC-7110-LX-BOOTLOADER-1.9_VERSION-4.2.tgz
[linux-2.6.19-moxart.git] / include / asm-nios2nommu / cache.h
blob82bbd1435fa22024bad6298e8fb620fff6ffad07
1 /*
2 * Copyright (C) 2004 Microtronix Datacom Ltd.
4 * All rights reserved.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or
14 * NON INFRINGEMENT. See the GNU General Public License for more
15 * details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 #ifndef __ARCH_NIOS2NOMMU_CACHE_H
23 #define __ARCH_NIOS2NOMMU_CACHE_H
25 #include <asm/nios.h>
27 /* bytes per L1 cache line */
28 #define L1_CACHE_BYTES nasys_icache_line_size /* 32, this need to be at least 1 */
29 #define L1_CACHE_ALIGN(x) (((x)+(L1_CACHE_BYTES-1))&~(L1_CACHE_BYTES-1))
30 #define L1_CACHE_SHIFT 5
33 #define __cacheline_aligned
34 #define ____cacheline_aligned
36 #endif