Lines Matching refs:esp
500 * user esp - if from user
513 movl %esp,%ebx
534 movl %ebx,%esp /* switch to hi based PCB stack */
555 addl $8,%esp /* discard trap number and error code */
557 cmpl $(SYSENTER_CS),4(%esp) /* test for fast entry/exit */
564 andl $(~EFL_IF),(%esp) /* clear intrs enabled, see sti below */
566 popl %ecx /* user return esp */
606 movl (%esp), %esp /* switch from intr stack to pcb */
626 orl $(EFL_IF),R32_EFLAGS-R32_EDI(%esp) /* (edi was last reg pushed) */
652 testb $3,R32_CS(%esp)
654 movl %esp,%edx /* came from user mode */
659 movl %edx,%esp
665 movl R32_TRAPNO(%esp),%ecx // Get the interrupt vector
677 movl %eax,R32_CR2-R32_EDI(%esp)/* save in esp save slot */
691 testb $3,4(%esp)
694 cmpl $(HI_TEXT(hi_mach_scall)),(%esp)
696 addl $12,%esp /* remove eip/cs/eflags from debug_trap */
699 cmpl $(HI_TEXT(hi_mdep_scall)),(%esp)
701 addl $12,%esp /* remove eip/cs/eflags from debug_trap */
704 cmpl $(HI_TEXT(hi_unix_scall)),(%esp)
706 addl $12,%esp /* remove eip/cs/eflags from debug_trap */
709 cmpl $(HI_TEXT(hi_sysenter)),(%esp)
720 addl $8,%esp /* remove eip/cs */
722 movl 8(%esp),%ecx /* top of intr stack -> pcb stack */
723 xchgl %ecx,%esp /* switch to pcb stack */
744 * esp-> 0: trap code (NP or GP)
759 testb $3,12(%esp)
763 cmpl $(HI_TEXT(ret_iret)),8(%esp) /* on IRET? */
765 cmpl $(HI_TEXT(ret_popl_ds)),8(%esp) /* popping DS? */
767 cmpl $(HI_TEXT(ret_popl_es)),8(%esp) /* popping ES? */
769 cmpl $(HI_TEXT(ret_popl_fs)),8(%esp) /* popping FS? */
771 cmpl $(HI_TEXT(ret_popl_gs)),8(%esp) /* popping GS? */
792 * 32 user esp
796 movl %eax,8(%esp) /* save eax (we don`t need saved eip) */
798 movl %eax,12-4(%esp) /* put in user trap number */
800 movl %eax,16-8(%esp) /* put in user errcode */
815 addl $12,%esp /* pop stack to user regs */
820 addl $12,%esp /* pop stack to user regs */
825 addl $12,%esp /* pop stack to user regs */
830 addl $12,%esp /* pop stack to user regs */
841 movl %eax,R32_TRAPNO(%esp) /* set trap number */
842 movl %edx,R32_ERR(%esp) /* set error code */
858 * esp -> x86_saved_state_t
862 * esp -> low based stack
871 movl R32_CS(%esp),%eax /* assume 32-bit state */
872 cmpl $(SS_64),SS_FLAVOR(%esp)/* 64-bit? */
874 movl R64_CS(%esp),%eax /* 64-bit user mode */
888 xchgl %ebx,%esp /* switch to kernel stack */
900 movl %gs:CPU_ACTIVE_THREAD, %esp
901 movl TH_PCB_ISS(%esp), %esp /* switch back to PCB stack */
907 xchgl %ebx, %esp /* switch to kernel stack */
922 xchgl %ebx, %esp /* switch back to PCB stack */
934 xchgl %ebx, %esp /* switch back to PCB stack */
951 movl %esp, %eax /* saved state addr */
952 pushl R32_EIP(%esp) /* Simulate a CALL from fault point */
954 movl %esp, %ebp
957 addl $4, %esp
963 cmpl $ T_PREEMPT,R32_TRAPNO(%esp)
965 testl $ EFL_IF,R32_EFLAGS(%esp) /* interrupts disabled? */
970 movl %esp,%ecx
983 * esp-> -> x86_saved_state_t
986 * esp -> low based stack
999 cmpl %esp,%ecx
1002 cmpl %esp,%edx
1005 xchgl %ecx,%esp /* switch to interrupt stack */
1011 subl $8, %esp /* for 16-byte stack alignment */
1051 popl %esp /* switch back to old stack */
1054 movl R32_CS(%esp),%eax /* assume 32-bit state */
1055 cmpl $(SS_64),SS_FLAVOR(%esp)/* 64-bit? */
1057 movl R64_CS(%esp),%eax /* 64-bit user mode */
1074 movl %esp,%ecx
1097 movl %esp, %edx /* x86_saved_state */
1123 * esp -> x86_saved_state32_t
1125 * esp -> low based stack
1139 movl R32_EAX(%esp),%eax
1148 xchgl %edi,%esp /* switch to kernel stack */
1168 xchgl %edi,%esp /* switch to kernel stack */
1188 xchgl %edi,%esp /* switch to kernel stack */