Lines Matching refs:ecx

493  *	ecx
514 movl %gs:CPU_ACTIVE_THREAD,%ecx
515 subl TH_PCB_ISS(%ecx),%ebx
516 movl $(WINDOWS_CLEAN),TH_COPYIO_STATE(%ecx)
518 movl TH_PCB_IDS(%ecx),%eax /* get debug state struct */
521 movl DS_DR0(%eax), %ecx /* Load the 32 bit debug registers */
522 movl %ecx, %db0
523 movl DS_DR1(%eax), %ecx
524 movl %ecx, %db1
525 movl DS_DR2(%eax), %ecx
526 movl %ecx, %db2
527 movl DS_DR3(%eax), %ecx
528 movl %ecx, %db3
532 movl %gs:CPU_TASK_CR3,%ecx
533 movl %ecx,%gs:CPU_ACTIVE_CR3
535 movl %ecx,%cr3 /* switch to user's address space */
563 popl %ecx /* pop and toss cs */
566 popl %ecx /* user return esp */
599 * ecx: user stack pointer
603 * or requiring ecx to be preserved.
612 pushl %ecx /* uesp */
645 movl HI_DATA(lo_kernel_cr3),%ecx
647 cmpl %eax,%ecx
649 movl %ecx,%cr3
650 movl %ecx,%gs:CPU_ACTIVE_CR3
657 movl %gs:CPU_ACTIVE_THREAD,%ecx
658 addl TH_PCB_ISS(%ecx),%edx /* rebase the high stack to a low address */
660 cmpl $0, TH_PCB_IDS(%ecx) /* Is there a debug register state? */
662 movl $0, %ecx /* If so, reset DR7 (the control) */
663 movl %ecx, %dr7
665 movl R32_TRAPNO(%esp),%ecx // Get the interrupt vector
666 addl $1,%gs:hwIntCnt(,%ecx,4) // Bump the count
721 pushl %ecx /* save %ecx */
722 movl 8(%esp),%ecx /* top of intr stack -> pcb stack */
723 xchgl %ecx,%esp /* switch to pcb stack */
725 pushl %ss:(%ecx) /* %ecx into uesp slot */
726 pushl %ss:4(%ecx) /* eflags */
727 movl %ss:(%ecx),%ecx /* restore %ecx */
881 movl %gs:CPU_ACTIVE_THREAD,%ecx
882 movl TH_TASK(%ecx),%ebx
885 TASK_VTIMER_CHECK(%ebx, %ecx)
893 xorl %ecx,%ecx /* don't check if we're in the PFZ */
909 testl %ecx, %ecx /* see if we need to check for an EIP in the PFZ */
925 movl R64_RIP(%ebx), %ecx
929 CCALL2(commpage_is_in_pfz64, %ecx, %eax)
941 xorl %ecx, %ecx /* don't check if we're in the PFZ */
970 movl %esp,%ecx
971 xorl %eax,%ecx
972 and EXT(kernel_stack_mask),%ecx
973 testl %ecx,%ecx /* are we on the kernel stack? */
998 movl %gs:CPU_INT_STACK_TOP,%ecx
999 cmpl %esp,%ecx
1001 leal -INTSTACK_SIZE(%ecx),%edx
1005 xchgl %ecx,%esp /* switch to interrupt stack */
1012 pushl %ecx /* save pointer to old stack */
1013 movl %ecx,%gs:CPU_INT_STATE /* save intr state */
1017 movl %gs:CPU_ACTIVE_THREAD,%ecx
1018 movl TH_TASK(%ecx),%ebx
1021 TASK_VTIMER_CHECK(%ebx, %ecx)
1074 movl %esp,%ecx
1075 xorl %eax,%ecx
1076 and EXT(kernel_stack_mask),%ecx
1077 testl %ecx,%ecx /* are we on the kernel stack? */
1115 movl $1, %ecx /* check if we're in the PFZ */
1149 movl %gs:CPU_ACTIVE_THREAD,%ecx /* get current thread */
1150 movl TH_TASK(%ecx),%ebx /* point to current task */
1151 incl TH_SYSCALLS_UNIX(%ecx) /* increment call count */
1154 TASK_VTIMER_CHECK(%ebx, %ecx)
1169 movl %gs:CPU_ACTIVE_THREAD,%ecx /* get current thread */
1170 movl TH_TASK(%ecx),%ebx /* point to current task */
1171 incl TH_SYSCALLS_MACH(%ecx) /* increment call count */
1174 TASK_VTIMER_CHECK(%ebx, %ecx)
1189 movl %gs:CPU_ACTIVE_THREAD,%ecx /* get current thread */
1190 movl TH_TASK(%ecx),%ebx /* point to current task */
1193 TASK_VTIMER_CHECK(%ebx, %ecx)