• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/xnu-2782.1.97/osfmk/x86_64/

Lines Matching refs:gs

158 	cmpl	$(TASK_MAP_32BIT), %gs:CPU_TASK_MAP
165 mov %gs:CPU_KERNEL_STACK, %rsp
183 movl %gs, R64_GS(%r15)
226 cmpl $(TASK_MAP_32BIT), %gs:CPU_TASK_MAP
233 mov %gs:CPU_KERNEL_STACK, %rsp
242 movl %gs, R32_GS(%r15)
296 mov %gs:CPU_KERNEL_CR3, %rcx
297 mov %rcx, %gs:CPU_ACTIVE_CR3
306 mov %gs:CPU_ACTIVE_CR3+4, %rcx
310 movl $0, %gs:CPU_TLB_INVALID
323 mov %gs:CPU_ACTIVE_THREAD, %rcx /* Get the active thread */
330 incl %gs:hwIntCnt(,%ebx,4) // Bump the trap/intr count
342 mov %gs:CPU_ACTIVE_THREAD, %rdx
347 cmpl $(TASK_MAP_32BIT), %gs:CPU_TASK_MAP /* Are we a 32-bit task? */
358 movq %rcx, %gs:CPU_DR7
370 mov %rcx, %gs:CPU_DR7
378 mov %gs:CPU_TASK_CR3, %rcx
379 mov %rcx, %gs:CPU_ACTIVE_CR3
385 mov %gs:CPU_DR7, %rax /* Is there a debug control register?*/
389 movq $0, %gs:CPU_DR7
443 movl R32_GS(%rsp), %gs
544 swapgs /* switch to kernel gs (cpu_data) */
552 swapgs /* switch to kernel gs (cpu_data) */
560 swapgs /* switch to kernel gs (cpu_data) */
571 mov %rsp, %gs:CPU_UBER_TMP /* save user stack */
572 mov %gs:CPU_UBER_ISF, %rsp /* switch stack to pcb */
582 mov %gs:CPU_UBER_TMP, %rcx
619 swapgs /* switch to kernel gs (cpu_data) */
721 mov %rcx, %gs:CPU_UBER_TMP /* save user RCX */
722 mov %gs:CPU_UBER_ISF, %rcx /* PCB stack addr */
740 mov %gs:CPU_UBER_TMP, %rsp /* user RCX into RSP */
775 * But first, ensure we have the kernel gs base active...
788 movq %gs:CPU_UBER_ISF, %rax /* PCB stack addr */
799 movq %gs:CPU_KERNEL_STACK, %rax
938 mov %gs:CPU_UBER_ISF, %rcx /* PCB stack addr */
961 mov %gs:CPU_KERNEL_STACK, %rax
967 mov %gs:CPU_INT_STACK_TOP, %rax
974 mov %gs:CPU_KERNEL_STACK, %rcx
1021 mov %gs:CPU_ACTIVE_THREAD, %rcx
1035 movq %gs:CPU_ACTIVE_THREAD,%r15 /* Get current thread */
1044 movl %gs:CPU_PENDING_AST,%eax
1098 movl %gs:CPU_PENDING_AST,%eax /* get pending asts */
1105 cmpl $0,%gs:CPU_PREEMPTION_LEVEL /* preemption disabled? */
1107 movq %gs:CPU_KERNEL_STACK,%rax
1134 movq %gs:CPU_INT_STACK_TOP,%rcx
1148 pushq %gs:CPU_INT_STATE /* save previous intr state */
1149 movq %r15,%gs:CPU_INT_STATE /* set intr state */
1154 mov %gs:CPU_ACTIVE_THREAD, %rcx
1158 incl %gs:CPU_PREEMPTION_LEVEL
1159 incl %gs:CPU_INTERRUPT_LEVEL
1168 decl %gs:CPU_INTERRUPT_LEVEL
1169 decl %gs:CPU_PREEMPTION_LEVEL
1173 popq %gs:CPU_INT_STATE /* reset/clear intr state pointer */
1176 movq %gs:CPU_ACTIVE_THREAD,%rax
1215 movl %gs:CPU_PENDING_AST,%eax
1219 cmpl $0,%gs:CPU_PREEMPTION_LEVEL /* preemption disabled? */
1237 incl %gs:CPU_PREEMPTION_LEVEL
1238 incl %gs:CPU_INTERRUPT_LEVEL
1239 incl %gs:CPU_NESTED_ISTACK
1241 push %gs:CPU_INT_STATE
1242 mov %r15, %gs:CPU_INT_STATE
1246 pop %gs:CPU_INT_STATE
1248 decl %gs:CPU_INTERRUPT_LEVEL
1249 decl %gs:CPU_PREEMPTION_LEVEL
1250 decl %gs:CPU_NESTED_ISTACK
1258 movl %gs:CPU_PENDING_AST,%eax
1297 movq %gs:CPU_ACTIVE_THREAD,%rcx /* get current thread */
1315 movq %gs:CPU_ACTIVE_THREAD,%rcx /* get current thread */
1334 movq %gs:CPU_ACTIVE_THREAD,%rcx /* get current thread */
1360 movq %gs:CPU_ACTIVE_THREAD,%rcx /* get current thread */