Lines Matching refs:GS
117 enum which_base { FS, GS };
169 base = read_base(GS);
203 base = read_base(GS);
219 * ARCH_SET_FS/GS(0) may or may not program a selector of zero. HARD_ZERO
250 * Sets GS != 0 and GSBASE != 0 but arranges for the kernel to think
329 printf("[FAIL]\tAfter switch, GS = 0x%hx and GSBASE = 0x%lx\n",
347 * On AMD chips, this causes GSBASE != 0, GS == 0, and
384 if (read_base(GS) != local) {
392 local = read_base(GS);
410 base = read_base(GS);
435 base = read_base(GS);
455 printf("[RUN]\tPTRACE_POKE GS, read GSBASE back\n");
484 printf("[RUN]\tSet GS = 0x7, read GSBASE\n");
486 /* Poke an LDT selector into GS. */
494 printf("[OK]\tGSBASE reads as 0x%lx with invalid GS\n", base);