diff options
Diffstat (limited to 'arch/mips/include/asm/asm.h')
-rw-r--r-- | arch/mips/include/asm/asm.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/arch/mips/include/asm/asm.h b/arch/mips/include/asm/asm.h index 879691d194af..7c26b28bf252 100644 --- a/arch/mips/include/asm/asm.h +++ b/arch/mips/include/asm/asm.h | |||
@@ -18,6 +18,7 @@ | |||
18 | #define __ASM_ASM_H | 18 | #define __ASM_ASM_H |
19 | 19 | ||
20 | #include <asm/sgidefs.h> | 20 | #include <asm/sgidefs.h> |
21 | #include <asm/asm-eva.h> | ||
21 | 22 | ||
22 | #ifndef CAT | 23 | #ifndef CAT |
23 | #ifdef __STDC__ | 24 | #ifdef __STDC__ |
@@ -145,19 +146,27 @@ symbol = value | |||
145 | 146 | ||
146 | #define PREF(hint,addr) \ | 147 | #define PREF(hint,addr) \ |
147 | .set push; \ | 148 | .set push; \ |
148 | .set mips4; \ | 149 | .set arch=r5000; \ |
149 | pref hint, addr; \ | 150 | pref hint, addr; \ |
150 | .set pop | 151 | .set pop |
151 | 152 | ||
153 | #define PREFE(hint, addr) \ | ||
154 | .set push; \ | ||
155 | .set mips0; \ | ||
156 | .set eva; \ | ||
157 | prefe hint, addr; \ | ||
158 | .set pop | ||
159 | |||
152 | #define PREFX(hint,addr) \ | 160 | #define PREFX(hint,addr) \ |
153 | .set push; \ | 161 | .set push; \ |
154 | .set mips4; \ | 162 | .set arch=r5000; \ |
155 | prefx hint, addr; \ | 163 | prefx hint, addr; \ |
156 | .set pop | 164 | .set pop |
157 | 165 | ||
158 | #else /* !CONFIG_CPU_HAS_PREFETCH */ | 166 | #else /* !CONFIG_CPU_HAS_PREFETCH */ |
159 | 167 | ||
160 | #define PREF(hint, addr) | 168 | #define PREF(hint, addr) |
169 | #define PREFE(hint, addr) | ||
161 | #define PREFX(hint, addr) | 170 | #define PREFX(hint, addr) |
162 | 171 | ||
163 | #endif /* !CONFIG_CPU_HAS_PREFETCH */ | 172 | #endif /* !CONFIG_CPU_HAS_PREFETCH */ |