Lines Matching full:ss
3 * mov_ss_trap.c: Exercise the bizarre side effects of a watchpoint on MOV SS
5 * This does MOV SS from a watchpointed address followed by various
6 * types of kernel entries. A MOV SS that hits a watchpoint will queue
47 unsigned short ss; variable
66 dr0 = (unsigned long)&ss; in enable_watchpoint()
147 asm volatile ("mov %%ss, %[ss]" : [ss] "=m" (ss)); in main()
148 printf("\tSS = 0x%hx, &SS = 0x%p\n", ss, &ss); in main()
158 asm volatile ("mov %[ss], %[tmp]" : [tmp] "=r" (nr) : [ss] "m" (ss)); in main()
160 printf("[RUN]\tMOV SS; INT3\n"); in main()
161 asm volatile ("mov %[ss], %%ss; int3" :: [ss] "m" (ss)); in main()
163 printf("[RUN]\tMOV SS; INT 3\n"); in main()
164 asm volatile ("mov %[ss], %%ss; .byte 0xcd, 0x3" :: [ss] "m" (ss)); in main()
166 printf("[RUN]\tMOV SS; CS CS INT3\n"); in main()
167 asm volatile ("mov %[ss], %%ss; .byte 0x2e, 0x2e; int3" :: [ss] "m" (ss)); in main()
169 printf("[RUN]\tMOV SS; CSx14 INT3\n"); in main()
170 asm volatile ("mov %[ss], %%ss; .fill 14,1,0x2e; int3" :: [ss] "m" (ss)); in main()
172 printf("[RUN]\tMOV SS; INT 4\n"); in main()
174 asm volatile ("mov %[ss], %%ss; int $4" :: [ss] "m" (ss)); in main()
177 printf("[RUN]\tMOV SS; INTO\n"); in main()
180 asm volatile ("add $1, %[tmp]; mov %[ss], %%ss; into" in main()
181 : [tmp] "+r" (nr) : [ss] "m" (ss)); in main()
185 printf("[RUN]\tMOV SS; ICEBP\n"); in main()
190 asm volatile ("mov %[ss], %%ss; .byte 0xf1" :: [ss] "m" (ss)); in main()
194 printf("[RUN]\tMOV SS; CLI\n"); in main()
196 asm volatile ("mov %[ss], %%ss; cli" :: [ss] "m" (ss)); in main()
200 printf("[RUN]\tMOV SS; #PF\n"); in main()
202 asm volatile ("mov %[ss], %%ss; mov (-1), %[tmp]" in main()
203 : [tmp] "=r" (nr) : [ss] "m" (ss)); in main()
211 printf("[RUN]\tMOV SS; INT 1\n"); in main()
213 asm volatile ("mov %[ss], %%ss; int $1" :: [ss] "m" (ss)); in main()
223 printf("[RUN]\tMOV SS; SYSCALL\n"); in main()
231 "mov %[ss], %%ss; syscall\n\t" in main()
233 : "+a" (nr) : [ss] "m" (ss) in main()
242 printf("[RUN]\tMOV SS; breakpointed NOP\n"); in main()
243 asm volatile ("mov %[ss], %%ss; breakpoint_insn: nop" :: [ss] "m" (ss)); in main()
250 printf("[RUN]\tMOV SS; SYSENTER\n"); in main()
261 asm volatile ("xorl %%ebp, %%ebp; mov %[ss], %%ss; SYSENTER" : "+a" (nr) in main()
262 : [ss] "m" (ss) : "flags", "rcx" in main()
272 printf("[RUN]\tMOV SS; INT $0x80\n"); in main()
275 asm volatile ("mov %[ss], %%ss; int $0x80" in main()
276 : "+a" (nr) : [ss] "m" (ss) in main()