zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

cachectl.h (767B) - Raw


      1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
      2 /*
      3  * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
      4  *
      5  * This program is free software; you can redistribute it and/or modify
      6  * it under the terms of the GNU General Public License version 2 as
      7  * published by the Free Software Foundation.
      8  */
      9 
     10 #ifndef __ARC_ASM_CACHECTL_H
     11 #define __ARC_ASM_CACHECTL_H
     12 
     13 /*
     14  * ARC ABI flags defined for Android's finegrained cacheflush requirements
     15  */
     16 #define CF_I_INV	0x0002
     17 #define CF_D_FLUSH	0x0010
     18 #define CF_D_FLUSH_INV	0x0020
     19 
     20 #define CF_DEFAULT	(CF_I_INV | CF_D_FLUSH)
     21 
     22 /*
     23  * Standard flags expected by cacheflush system call users
     24  */
     25 #define ICACHE	CF_I_INV
     26 #define DCACHE	CF_D_FLUSH
     27 #define BCACHE	(CF_I_INV | CF_D_FLUSH)
     28 
     29 #endif