Lines Matching refs:gs

134 		asm volatile ("mov %%gs:(%%rcx), %%rax" : : "c" (offset) : "rax");
150 asm volatile ("mov %%gs:(%%rcx), %%rax"
168 asm volatile ("mov %%gs, %0" : "=rm" (sel));
195 printf("[RUN]\tARCH_SET_GS to 0x%lx then mov 0 to %%gs%s\n", initial_base, schedule ? " and schedule " : "");
202 asm volatile ("mov %0, %%gs" : : "rm" (0));
237 asm volatile ("mov %0, %%gs" : : "rm" ((unsigned short)0));
240 asm volatile ("mov %%gs, %0" : "=rm" (sel));
242 to_set, hard_zero ? " and clear gs" : "", sel);
272 asm volatile ("mov %0, %%gs" : : "rm" ((unsigned short)0x7));
301 unsigned short gs = (unsigned short)((desc.entry_number << 3) | 0x3);
302 asm volatile ("mov %0, %%gs" : : "rm" (gs));
303 return gs;
314 asm volatile ("mov %0, %%gs" : : "rm" (index));
323 asm volatile ("mov %%gs, %0" : "=rm" (newindex));
352 asm volatile ("mov %0, %%gs" : : "rm" ((unsigned short)0));
376 local, hard_zero ? " and clear gs" : "", remote);
382 asm volatile ("mov %0, %%gs" : : "rm" ((unsigned short)0));
390 asm volatile ("mov %0, %%gs" : : "rm" (force_sel));
398 asm volatile ("mov %0, %%gs" : : "rm" (force_sel));
400 asm volatile ("mov %%gs, %0" : "=rm" (sel_pre_sched));
409 asm volatile ("mov %%gs, %0" : "=rm" (sel_post_sched));
433 printf("[RUN]\tARCH_SET_GS(0), clear gs, then manipulate GSBASE in a different thread\n");
436 asm volatile ("mov %0, %%gs" : : "rm" ((unsigned short)0));
480 unsigned long gs_offset = USER_REGS_OFFSET(gs);
539 unsigned long gs, base;
540 unsigned long gs_offset = USER_REGS_OFFSET(gs);
543 gs = ptrace(PTRACE_PEEKUSER, child, gs_offset, NULL);
545 if (gs != *shared_scratch) {
554 gs = ptrace(PTRACE_PEEKUSER, child, gs_offset, NULL);
563 if (gs != *shared_scratch) {
565 printf("[FAIL]\tGS changed to %lx\n", gs);
575 if (gs == 0)