4 /* Define nops for use with alternative() */
6 <<<<<<< HEAD
:include
/asm-x86
/nops
.h
7 /* generic versions from gas */
8 #define GENERIC_NOP1 ".byte 0x90\n"
9 #define GENERIC_NOP2 ".byte 0x89,0xf6\n"
10 #define GENERIC_NOP3 ".byte 0x8d,0x76,0x00\n"
11 #define GENERIC_NOP4 ".byte 0x8d,0x74,0x26,0x00\n"
12 #define GENERIC_NOP5 GENERIC_NOP1 GENERIC_NOP4
13 #define GENERIC_NOP6 ".byte 0x8d,0xb6,0x00,0x00,0x00,0x00\n"
14 #define GENERIC_NOP7 ".byte 0x8d,0xb4,0x26,0x00,0x00,0x00,0x00\n"
15 #define GENERIC_NOP8 GENERIC_NOP1 GENERIC_NOP7
17 /* generic versions from gas
20 3: leal 0x00(%esi),%esi
21 4: leal 0x00(,%esi,1),%esi
22 6: leal 0x00000000(%esi),%esi
23 7: leal 0x00000000(,%esi,1),%esi
25 #define GENERIC_NOP1 ".byte 0x90\n"
26 #define GENERIC_NOP2 ".byte 0x89,0xf6\n"
27 #define GENERIC_NOP3 ".byte 0x8d,0x76,0x00\n"
28 #define GENERIC_NOP4 ".byte 0x8d,0x74,0x26,0x00\n"
29 #define GENERIC_NOP5 GENERIC_NOP1 GENERIC_NOP4
30 #define GENERIC_NOP6 ".byte 0x8d,0xb6,0x00,0x00,0x00,0x00\n"
31 #define GENERIC_NOP7 ".byte 0x8d,0xb4,0x26,0x00,0x00,0x00,0x00\n"
32 #define GENERIC_NOP8 GENERIC_NOP1 GENERIC_NOP7
33 >>>>>>> 264e3e889d86e552b4191d69bb60f4f3b383135a
:include
/asm-x86
/nops
.h
35 <<<<<<< HEAD
:include
/asm-x86
/nops
.h
36 /* Opteron 64bit nops */
44 >>>>>>> 264e3e889d86e552b4191d69bb60f4f3b383135a
:include
/asm-x86
/nops
.h
45 #define K8_NOP1 GENERIC_NOP1
46 #define K8_NOP2 ".byte 0x66,0x90\n"
47 #define K8_NOP3 ".byte 0x66,0x66,0x90\n"
48 #define K8_NOP4 ".byte 0x66,0x66,0x66,0x90\n"
49 #define K8_NOP5 K8_NOP3 K8_NOP2
50 #define K8_NOP6 K8_NOP3 K8_NOP3
51 #define K8_NOP7 K8_NOP4 K8_NOP3
52 #define K8_NOP8 K8_NOP4 K8_NOP4
54 <<<<<<< HEAD
:include
/asm-x86
/nops
.h
56 /* uses eax dependencies (arbitary choice) */
57 #define K7_NOP1 GENERIC_NOP1
60 uses eax dependencies (arbitary choice)
63 3: leal (,%eax,1),%eax
64 4: leal 0x00(,%eax,1),%eax
65 6: leal 0x00000000(%eax),%eax
66 7: leal 0x00000000(,%eax,1),%eax
68 #define K7_NOP1 GENERIC_NOP1
69 >>>>>>> 264e3e889d86e552b4191d69bb60f4f3b383135a
:include
/asm-x86
/nops
.h
70 #define K7_NOP2 ".byte 0x8b,0xc0\n"
71 #define K7_NOP3 ".byte 0x8d,0x04,0x20\n"
72 #define K7_NOP4 ".byte 0x8d,0x44,0x20,0x00\n"
73 #define K7_NOP5 K7_NOP4 ASM_NOP1
74 #define K7_NOP6 ".byte 0x8d,0x80,0,0,0,0\n"
75 <<<<<<< HEAD
:include
/asm-x86
/nops
.h
76 #define K7_NOP7 ".byte 0x8D,0x04,0x05,0,0,0,0\n"
77 #define K7_NOP8 K7_NOP7 ASM_NOP1
79 #define K7_NOP7 ".byte 0x8D,0x04,0x05,0,0,0,0\n"
80 #define K7_NOP8 K7_NOP7 ASM_NOP1
81 >>>>>>> 264e3e889d86e552b4191d69bb60f4f3b383135a
:include
/asm-x86
/nops
.h
83 <<<<<<< HEAD
:include
/asm-x86
/nops
.h
85 /* uses eax dependencies (Intel-recommended choice) */
88 uses eax dependencies (Intel-recommended choice)
93 5: nopl 0x00(%eax,%eax,1)
94 6: osp nopl 0x00(%eax,%eax,1)
95 7: nopl 0x00000000(%eax)
96 8: nopl 0x00000000(%eax,%eax,1)
98 >>>>>>> 264e3e889d86e552b4191d69bb60f4f3b383135a
:include
/asm-x86
/nops
.h
99 #define P6_NOP1 GENERIC_NOP1
100 #define P6_NOP2 ".byte 0x66,0x90\n"
101 #define P6_NOP3 ".byte 0x0f,0x1f,0x00\n"
102 #define P6_NOP4 ".byte 0x0f,0x1f,0x40,0\n"
103 #define P6_NOP5 ".byte 0x0f,0x1f,0x44,0x00,0\n"
104 #define P6_NOP6 ".byte 0x66,0x0f,0x1f,0x44,0x00,0\n"
105 #define P6_NOP7 ".byte 0x0f,0x1f,0x80,0,0,0,0\n"
106 #define P6_NOP8 ".byte 0x0f,0x1f,0x84,0x00,0,0,0,0\n"
108 #if defined(CONFIG_MK8)
109 #define ASM_NOP1 K8_NOP1
110 #define ASM_NOP2 K8_NOP2
111 #define ASM_NOP3 K8_NOP3
112 #define ASM_NOP4 K8_NOP4
113 #define ASM_NOP5 K8_NOP5
114 #define ASM_NOP6 K8_NOP6
115 #define ASM_NOP7 K8_NOP7
116 #define ASM_NOP8 K8_NOP8
117 #elif defined(CONFIG_MK7)
118 #define ASM_NOP1 K7_NOP1
119 #define ASM_NOP2 K7_NOP2
120 #define ASM_NOP3 K7_NOP3
121 #define ASM_NOP4 K7_NOP4
122 #define ASM_NOP5 K7_NOP5
123 #define ASM_NOP6 K7_NOP6
124 #define ASM_NOP7 K7_NOP7
125 #define ASM_NOP8 K7_NOP8
126 <<<<<<< HEAD
:include
/asm-x86
/nops
.h
127 #elif defined(CONFIG_M686) || defined(CONFIG_MPENTIUMII) || \
128 defined(CONFIG_MPENTIUMIII) || defined(CONFIG_MPENTIUMM) || \
129 defined(CONFIG_MCORE2) || defined(CONFIG_PENTIUM4)
131 #elif defined(CONFIG_X86_P6_NOP)
132 >>>>>>> 264e3e889d86e552b4191d69bb60f4f3b383135a
:include
/asm-x86
/nops
.h
133 #define ASM_NOP1 P6_NOP1
134 #define ASM_NOP2 P6_NOP2
135 #define ASM_NOP3 P6_NOP3
136 #define ASM_NOP4 P6_NOP4
137 #define ASM_NOP5 P6_NOP5
138 #define ASM_NOP6 P6_NOP6
139 #define ASM_NOP7 P6_NOP7
140 #define ASM_NOP8 P6_NOP8
142 #define ASM_NOP1 GENERIC_NOP1
143 #define ASM_NOP2 GENERIC_NOP2
144 #define ASM_NOP3 GENERIC_NOP3
145 #define ASM_NOP4 GENERIC_NOP4
146 #define ASM_NOP5 GENERIC_NOP5
147 #define ASM_NOP6 GENERIC_NOP6
148 #define ASM_NOP7 GENERIC_NOP7
149 #define ASM_NOP8 GENERIC_NOP8
152 #define ASM_NOP_MAX 8