Main Page   Modules   Alphabetical List   Data Structures   File List   Data Fields   Globals   Related Pages  

cache.h

Go to the documentation of this file.
00001 /*!     \file include/arch/cache.h
00002  *      \brief Cache parameters.
00003  *      \author Andrea Righi <drizzt@inwind.it>
00004  *      \date Last update: 2004-01-12
00005  *      \note Copyright (&copy;) 2003 Andrea Righi
00006  */
00007 
00008 #ifndef CACHE_H
00009 #define CACHE_H
00010 
00011 #include <kernel/config.h>
00012 
00013 //! The L1 cache line size (how many bits are used).
00014 #ifdef CONFIG_M386
00015 #define CONFIG_X86_L1_CACHE_SHIFT       (4)
00016 #endif
00017 #ifdef CONFIG_M486
00018 #define CONFIG_X86_L1_CACHE_SHIFT       (4)
00019 #endif
00020 #ifdef CONFIG_M486
00021 #define CONFIG_X86_L1_CACHE_SHIFT       (4)
00022 #endif
00023 #ifdef CONFIG_M586
00024 #define CONFIG_X86_L1_CACHE_SHIFT       (5)
00025 #endif
00026 #ifdef CONFIG_M586TSC
00027 #define CONFIG_X86_L1_CACHE_SHIFT       (5)
00028 #endif
00029 #ifdef CONFIG_M586MMX
00030 #define CONFIG_X86_L1_CACHE_SHIFT       (5)
00031 #endif
00032 #ifdef CONFIG_M686
00033 #define CONFIG_X86_L1_CACHE_SHIFT       (5)
00034 #endif
00035 #ifdef CONFIG_MPENTIUMII
00036 #define CONFIG_X86_L1_CACHE_SHIFT       (5)
00037 #endif
00038 #ifdef CONFIG_MPENTIUMIII
00039 #define CONFIG_X86_L1_CACHE_SHIFT       (5)
00040 #endif
00041 #ifdef CONFIG_MPENTIUM4
00042 #define CONFIG_X86_L1_CACHE_SHIFT       (7)
00043 #endif
00044 #ifdef CONFIG_MK6
00045 #define CONFIG_X86_L1_CACHE_SHIFT       (5)
00046 #endif
00047 #ifdef CONFIG_MK7
00048 #define CONFIG_X86_L1_CACHE_SHIFT       (6)
00049 #endif
00050 #ifdef CONFIG_MATHLONXP
00051 #define CONFIG_X86_L1_CACHE_SHIFT       (6)
00052 #endif
00053 
00054 //! The L1 cache line size (how many bits are used).
00055 #define L1_CACHE_SHIFT                  CONFIG_X86_L1_CACHE_SHIFT
00056 //! The L1 cache line size (in bytes).
00057 #define L1_CACHE_BYTES                  (1 << L1_CACHE_SHIFT)
00058 
00059 #endif

Generated on Fri Feb 20 15:32:15 2004 for Minirighi by doxygen1.2.18