Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
0002 /*
0003  * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
0004  *
0005  * This program is free software; you can redistribute it and/or modify
0006  * it under the terms of the GNU General Public License version 2 as
0007  * published by the Free Software Foundation.
0008  */
0009 
0010 #ifndef __ARC_ASM_CACHECTL_H
0011 #define __ARC_ASM_CACHECTL_H
0012 
0013 /*
0014  * ARC ABI flags defined for Android's finegrained cacheflush requirements
0015  */
0016 #define CF_I_INV    0x0002
0017 #define CF_D_FLUSH  0x0010
0018 #define CF_D_FLUSH_INV  0x0020
0019 
0020 #define CF_DEFAULT  (CF_I_INV | CF_D_FLUSH)
0021 
0022 /*
0023  * Standard flags expected by cacheflush system call users
0024  */
0025 #define ICACHE  CF_I_INV
0026 #define DCACHE  CF_D_FLUSH
0027 #define BCACHE  (CF_I_INV | CF_D_FLUSH)
0028 
0029 #endif