aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/processor_32.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-x86/processor_32.h')
-rw-r--r--include/asm-x86/processor_32.h85
1 files changed, 0 insertions, 85 deletions
diff --git a/include/asm-x86/processor_32.h b/include/asm-x86/processor_32.h
index 61a9cae2364..82fafabbfe7 100644
--- a/include/asm-x86/processor_32.h
+++ b/include/asm-x86/processor_32.h
@@ -18,7 +18,6 @@
18#include <linux/init.h> 18#include <linux/init.h>
19#include <asm/desc_defs.h> 19#include <asm/desc_defs.h>
20 20
21
22/* 21/*
23 * the following now lives in the per cpu area: 22 * the following now lives in the per cpu area:
24 * extern int cpu_llc_id[NR_CPUS]; 23 * extern int cpu_llc_id[NR_CPUS];
@@ -144,88 +143,4 @@ extern unsigned long thread_saved_pc(struct task_struct *tsk);
144 143
145#define KSTK_ESP(task) (task_pt_regs(task)->sp) 144#define KSTK_ESP(task) (task_pt_regs(task)->sp)
146 145
147/* generic versions from gas */
148#define GENERIC_NOP1 ".byte 0x90\n"
149#define GENERIC_NOP2 ".byte 0x89,0xf6\n"
150#define GENERIC_NOP3 ".byte 0x8d,0x76,0x00\n"
151#define GENERIC_NOP4 ".byte 0x8d,0x74,0x26,0x00\n"
152#define GENERIC_NOP5 GENERIC_NOP1 GENERIC_NOP4
153#define GENERIC_NOP6 ".byte 0x8d,0xb6,0x00,0x00,0x00,0x00\n"
154#define GENERIC_NOP7 ".byte 0x8d,0xb4,0x26,0x00,0x00,0x00,0x00\n"
155#define GENERIC_NOP8 GENERIC_NOP1 GENERIC_NOP7
156
157/* Opteron nops */
158#define K8_NOP1 GENERIC_NOP1
159#define K8_NOP2 ".byte 0x66,0x90\n"
160#define K8_NOP3 ".byte 0x66,0x66,0x90\n"
161#define K8_NOP4 ".byte 0x66,0x66,0x66,0x90\n"
162#define K8_NOP5 K8_NOP3 K8_NOP2
163#define K8_NOP6 K8_NOP3 K8_NOP3
164#define K8_NOP7 K8_NOP4 K8_NOP3
165#define K8_NOP8 K8_NOP4 K8_NOP4
166
167/* K7 nops */
168/* uses eax dependencies (arbitary choice) */
169#define K7_NOP1 GENERIC_NOP1
170#define K7_NOP2 ".byte 0x8b,0xc0\n"
171#define K7_NOP3 ".byte 0x8d,0x04,0x20\n"
172#define K7_NOP4 ".byte 0x8d,0x44,0x20,0x00\n"
173#define K7_NOP5 K7_NOP4 ASM_NOP1
174#define K7_NOP6 ".byte 0x8d,0x80,0,0,0,0\n"
175#define K7_NOP7 ".byte 0x8D,0x04,0x05,0,0,0,0\n"
176#define K7_NOP8 K7_NOP7 ASM_NOP1
177
178/* P6 nops */
179/* uses eax dependencies (Intel-recommended choice) */
180#define P6_NOP1 GENERIC_NOP1
181#define P6_NOP2 ".byte 0x66,0x90\n"
182#define P6_NOP3 ".byte 0x0f,0x1f,0x00\n"
183#define P6_NOP4 ".byte 0x0f,0x1f,0x40,0\n"
184#define P6_NOP5 ".byte 0x0f,0x1f,0x44,0x00,0\n"
185#define P6_NOP6 ".byte 0x66,0x0f,0x1f,0x44,0x00,0\n"
186#define P6_NOP7 ".byte 0x0f,0x1f,0x80,0,0,0,0\n"
187#define P6_NOP8 ".byte 0x0f,0x1f,0x84,0x00,0,0,0,0\n"
188
189#ifdef CONFIG_MK8
190#define ASM_NOP1 K8_NOP1
191#define ASM_NOP2 K8_NOP2
192#define ASM_NOP3 K8_NOP3
193#define ASM_NOP4 K8_NOP4
194#define ASM_NOP5 K8_NOP5
195#define ASM_NOP6 K8_NOP6
196#define ASM_NOP7 K8_NOP7
197#define ASM_NOP8 K8_NOP8
198#elif defined(CONFIG_MK7)
199#define ASM_NOP1 K7_NOP1
200#define ASM_NOP2 K7_NOP2
201#define ASM_NOP3 K7_NOP3
202#define ASM_NOP4 K7_NOP4
203#define ASM_NOP5 K7_NOP5
204#define ASM_NOP6 K7_NOP6
205#define ASM_NOP7 K7_NOP7
206#define ASM_NOP8 K7_NOP8
207#elif defined(CONFIG_M686) || defined(CONFIG_MPENTIUMII) || \
208 defined(CONFIG_MPENTIUMIII) || defined(CONFIG_MPENTIUMM) || \
209 defined(CONFIG_MCORE2) || defined(CONFIG_PENTIUM4)
210#define ASM_NOP1 P6_NOP1
211#define ASM_NOP2 P6_NOP2
212#define ASM_NOP3 P6_NOP3
213#define ASM_NOP4 P6_NOP4
214#define ASM_NOP5 P6_NOP5
215#define ASM_NOP6 P6_NOP6
216#define ASM_NOP7 P6_NOP7
217#define ASM_NOP8 P6_NOP8
218#else
219#define ASM_NOP1 GENERIC_NOP1
220#define ASM_NOP2 GENERIC_NOP2
221#define ASM_NOP3 GENERIC_NOP3
222#define ASM_NOP4 GENERIC_NOP4
223#define ASM_NOP5 GENERIC_NOP5
224#define ASM_NOP6 GENERIC_NOP6
225#define ASM_NOP7 GENERIC_NOP7
226#define ASM_NOP8 GENERIC_NOP8
227#endif
228
229#define ASM_NOP_MAX 8
230
231#endif /* __ASM_I386_PROCESSOR_H */ 146#endif /* __ASM_I386_PROCESSOR_H */