00001
00002
00003
00004
00005
00006
00007
00008 #ifndef CACHE_H
00009 #define CACHE_H
00010
00011 #include <kernel/config.h>
00012
00013
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
00055 #define L1_CACHE_SHIFT CONFIG_X86_L1_CACHE_SHIFT
00056
00057 #define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)
00058
00059 #endif