Lines Matching refs:ecx
52 * Uses %eax, %ebx, %ecx, %edx, %esi, %edi.
76 movl %gs:CPU_ACTIVE_THREAD,%ecx /* get current thread */ ; \
77 subl (old##_TIMER)+TIMER_TSTAMP(%ecx),%eax /* elapsed */ ; \
78 sbbl (old##_TIMER)+TIMER_TSTAMP+4(%ecx),%edx /* time */ ; \
79 TIMER_UPDATE(%ecx,%edx,%eax,old##_TIMER) /* update timer */ ; \
80 movl %esi,(new##_TIMER)+TIMER_TSTAMP(%ecx) /* set timestamp */ ; \
81 movl %edi,(new##_TIMER)+TIMER_TSTAMP+4(%ecx) /* set timestamp */ ; \
82 leal (new##_TIMER)(%ecx), %ecx /* compute new timer pointer */ ; \
84 movl %ecx,THREAD_TIMER(%ebx) /* set current timer */ ; \
90 leal (new##_STATE)(%ebx),%ecx /* new state pointer */ ; \
91 movl %ecx,CURRENT_STATE(%ebx) /* set current state */ ; \
92 movl %esi,TIMER_TSTAMP(%ecx) /* set timestamp */ ; \
93 movl %edi,TIMER_TSTAMP+4(%ecx) /* set timestamp */
97 * Uses %eax,%ebx,%ecx,%edx,%esi,%edi.
103 * Uses %eax,%ebx,%ecx,%edx,%esi,%edi.
109 * Uses %eax,%ebx,%ecx,%edx,%esi,%edi.
119 movl THREAD_TIMER(%ebx),%ecx /* get current timer */ ; \
120 subl TIMER_TSTAMP(%ecx),%eax /* compute elapsed time */ ; \
121 sbbl TIMER_TSTAMP+4(%ecx),%edx /* compute elapsed time */ ; \
122 TIMER_UPDATE(%ecx,%edx,%eax,0) /* update timer */ ; \
123 movl KERNEL_TIMER(%ebx),%ecx /* point to kernel timer */ ; \
124 movl %esi,TIMER_TSTAMP(%ecx) /* set timestamp */ ; \
125 movl %edi,TIMER_TSTAMP+4(%ecx) /* set timestamp */ ; \
128 movl CURRENT_STATE(%ebx),%ecx /* get current state */ ; \
129 pushl %ecx /* save state */ ; \
130 subl TIMER_TSTAMP(%ecx),%eax /* compute elapsed time */ ; \
131 sbbl TIMER_TSTAMP+4(%ecx),%edx /* compute elapsed time */ ; \
132 TIMER_UPDATE(%ecx,%edx,%eax,0) /* update timer */ ; \
134 cmpl %eax,%ecx /* compare current state */ ; \
136 leal SYSTEM_STATE(%ebx),%ecx /* get system state */ ; \
137 movl %ecx,CURRENT_STATE(%ebx) /* set current state */ ; \
138 0: movl %esi,TIMER_TSTAMP(%ecx) /* set timestamp */ ; \
139 movl %edi,TIMER_TSTAMP+4(%ecx) /* set timestamp */
143 * Uses %eax,%ebx,%ecx,%edx,%esi,%edi.
153 movl KERNEL_TIMER(%ebx),%ecx /* point to kernel timer */ ; \
154 subl TIMER_TSTAMP(%ecx),%eax /* compute elapsed time */ ; \
155 sbbl TIMER_TSTAMP+4(%ecx),%edx /* compute elapsed time */ ; \
156 TIMER_UPDATE(%ecx,%edx,%eax,0) /* update timer */ ; \
157 movl THREAD_TIMER(%ebx),%ecx /* interrupted timer */ ; \
158 movl %esi,TIMER_TSTAMP(%ecx) /* set timestamp */ ; \
159 movl %edi,TIMER_TSTAMP+4(%ecx) /* set timestamp */ ; \
162 movl CURRENT_STATE(%ebx),%ecx /* get current state */ ; \
163 subl TIMER_TSTAMP(%ecx),%eax /* compute elapsed time */ ; \
164 sbbl TIMER_TSTAMP+4(%ecx),%edx /* compute elapsed time */ ; \
165 TIMER_UPDATE(%ecx,%edx,%eax,0) /* update timer */ ; \
166 popl %ecx /* restore state */ ; \
167 movl %ecx,CURRENT_STATE(%ebx) /* set current state */ ; \
168 movl %esi,TIMER_TSTAMP(%ecx) /* set timestamp */ ; \
169 movl %edi,TIMER_TSTAMP+4(%ecx) /* set timestamp */