cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

cache.h (861B)


      1/* SPDX-License-Identifier: GPL-2.0 */
      2
      3#ifndef __ASM_CSKY_CACHE_H
      4#define __ASM_CSKY_CACHE_H
      5
      6/* bytes per L1 cache line */
      7#define L1_CACHE_SHIFT	CONFIG_L1_CACHE_SHIFT
      8
      9#define L1_CACHE_BYTES	(1 << L1_CACHE_SHIFT)
     10
     11#define ARCH_DMA_MINALIGN	L1_CACHE_BYTES
     12
     13#ifndef __ASSEMBLY__
     14
     15void dcache_wb_line(unsigned long start);
     16
     17void icache_inv_range(unsigned long start, unsigned long end);
     18void icache_inv_all(void);
     19void local_icache_inv_all(void *priv);
     20
     21void dcache_wb_range(unsigned long start, unsigned long end);
     22void dcache_wbinv_all(void);
     23
     24void cache_wbinv_range(unsigned long start, unsigned long end);
     25void cache_wbinv_all(void);
     26
     27void dma_wbinv_range(unsigned long start, unsigned long end);
     28void dma_inv_range(unsigned long start, unsigned long end);
     29void dma_wb_range(unsigned long start, unsigned long end);
     30
     31#endif
     32#endif  /* __ASM_CSKY_CACHE_H */