Lines Matching refs:gs
117 * type. If so invoke it with the user's %gs value loaded and the following
127 * | | user's %gs selector |
144 pushl %gs /* save the user %gs */ ;\
146 movw %bx, %gs /* switch to the kernel's %gs */ ;\
147 movl %gs:CPU_THREAD, %ebx /* load the thread pointer */ ;\
157 movl 4(%esp), %ebx /* grab the user %gs */ ;\
158 movw %bx, %gs /* restore the user %gs */ ;\
160 1: movl 4(%esp), %ebx /* restore user %gs (re-do if */ ;\
161 movw %bx, %gs /* branch due to no callback) */ ;\
176 addl $1, %gs:CPU_STATS_SYS_SYSCALL; \
177 adcl $0, %gs:CPU_STATS_SYS_SYSCALL+4;
393 movl %gs:CPU_THREAD, %ebx
404 movl %gs:CPU_THREAD, %ebx
476 * by %ds, %es, %fs and %gs to capture a 'struct regs' on the stack.
477 * Then the kernel sets %ds, %es and %gs to kernel selectors, and finally
593 movl %gs:CPU_THREAD, %ebx
707 movl %gs:CPU_THREAD, %ebx