Lines Matching full:gs

71 	unsigned long cr0 = 0L, cr2 = 0L, cr3 = 0L, cr4 = 0L, fs, gs, shadowgs;  in __show_regs()  local
100 printk("%sFS: %016lx GS: %016lx\n", in __show_regs()
108 asm("movl %%gs,%0" : "=r" (gsindex)); in __show_regs()
111 rdmsrl(MSR_GS_BASE, gs); in __show_regs()
119 printk("%sFS: %016lx(%04x) GS:%016lx(%04x) knlGS:%016lx\n", in __show_regs()
120 log_lvl, fs, fsindex, gs, gsindex, shadowgs); in __show_regs()
153 GS enumerator
159 * the wrong GS.
173 * operate with its own GS base address: in __rdgsbase_inactive()
175 * the GS base address with the IA32_KERNEL_GS_BASE MSR. in __rdgsbase_inactive()
177 * the GS base address with the IA32_KERNEL_GS_BASE MSR. in __rdgsbase_inactive()
179 * And the operating system can still setup the GS segment for a in __rdgsbase_inactive()
180 * user thread without the need of loading a user thread GS with: in __rdgsbase_inactive()
182 * of the GS segment without compromising its ability always to in __rdgsbase_inactive()
183 * operate with its own GS base address. in __rdgsbase_inactive()
184 * - Accessing the GS segment base address for a user thread as in __rdgsbase_inactive()
187 * Note, LKGS loads the GS base address into the IA32_KERNEL_GS_BASE in __rdgsbase_inactive()
188 * MSR instead of the GS segment’s descriptor cache. As such, the in __rdgsbase_inactive()
189 * operating system never changes its runtime GS base address. in __rdgsbase_inactive()
208 * the wrong GS.
230 * Saves the FS or GS base for an outgoing thread if FSGSBASE extensions are
277 savesegment(gs, task->thread.gsindex); in save_fsgs()
288 save_base_legacy(task, task->thread.gsindex, GS); in save_fsgs()
395 /* Update the FS and GS selectors if they could have changed. */ in x86_fsgsbase_load()
399 loadseg(GS, next->gsindex); in x86_fsgsbase_load()
408 next->gsindex, next->gsbase, GS); in x86_fsgsbase_load()
603 * - could test fs/gs bitsliced
622 /* We must save %fs and %gs before load_TLS() because in __switch_to()
623 * %fs and %gs may be cleared by load_TLS(). in __switch_to()
882 loadseg(GS, 0); in do_arch_prctl_64()
901 * with %gs in do_arch_prctl_64()
909 * as %gs above. in do_arch_prctl_64()