Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * include/asm-alpha/cache.h
0004  */
0005 #ifndef __ARCH_ALPHA_CACHE_H
0006 #define __ARCH_ALPHA_CACHE_H
0007 
0008 
0009 /* Bytes per L1 (data) cache line. */
0010 #if defined(CONFIG_ALPHA_GENERIC) || defined(CONFIG_ALPHA_EV6)
0011 # define L1_CACHE_BYTES     64
0012 # define L1_CACHE_SHIFT     6
0013 #else
0014 /* Both EV4 and EV5 are write-through, read-allocate,
0015    direct-mapped, physical.
0016 */
0017 # define L1_CACHE_BYTES     32
0018 # define L1_CACHE_SHIFT     5
0019 #endif
0020 
0021 #define SMP_CACHE_BYTES    L1_CACHE_BYTES
0022 
0023 #endif