Path: blob/master/arch/unicore32/include/asm/cache.h
10818 views
/*1* linux/arch/unicore32/include/asm/cache.h2*3* Code specific to PKUnity SoC and UniCore ISA4*5* Copyright (C) 2001-2010 GUAN Xue-tao6*7* This program is free software; you can redistribute it and/or modify8* it under the terms of the GNU General Public License version 2 as9* published by the Free Software Foundation.10*/11#ifndef __UNICORE_CACHE_H__12#define __UNICORE_CACHE_H__1314#define L1_CACHE_SHIFT (5)15#define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)1617/*18* Memory returned by kmalloc() may be used for DMA, so we must make19* sure that all such allocations are cache aligned. Otherwise,20* unrelated code may cause parts of the buffer to be read into the21* cache before the transfer is done, causing old data to be seen by22* the CPU.23*/24#define ARCH_DMA_MINALIGN L1_CACHE_BYTES2526#endif272829