Searched refs:ecx (Results 1 - 25 of 32) sorted by relevance

12

/xnu-2422.115.4/libsyscall/custom/
H A D__vfork.s60 xorl %ecx, %ecx
62 cmovs %eax, %ecx
63 decl %ecx
65 cmpxchgl %ecx, __current_pid
67 popl %ecx
74 pushl %ecx
81 jmp *%ecx
87 jmp *%ecx
100 xorl %ecx,
[all...]
H A D__gettimeofday.s39 mov 4(%esp),%ecx
40 mov %eax,(%ecx)
41 mov %edx,4(%ecx)
H A D__pipe.s35 movl 4(%esp),%ecx
36 movl %eax,(%ecx)
37 movl %edx,4(%ecx)
H A D__syscall.s35 popl %ecx // ret addr
37 pushl %ecx
40 pushl %ecx // caller "pop" will work
H A D__getpid.s43 popl %ecx ; \
44 leal L__current_pid_addr-0b(%ecx), %ecx
46 #define __current_pid (%ecx)
H A Dcustom.s62 movl %esp, %ecx
/xnu-2422.115.4/libsyscall/wrappers/
H A D__commpage_gettimeofday.s54 mov $ NSEC_PER_SEC,%ecx
59 div %ecx
62 mov $ NSEC_PER_USEC,%ecx
65 div %ecx
67 mov 8(%ebp),%ecx
68 mov %ebx,(%ecx)
69 mov %eax,4(%ecx)
106 movl $ NSEC_PER_SEC,%ecx
109 divl %ecx // %eax <- seconds since timestamp, %edx <- nanoseconds
112 movl $ NSEC_PER_USEC,%ecx
[all...]
H A Dmach_absolute_time.s74 movl _COMM_PAGE_NT_SHIFT,%ecx
78 movl _COMM_PAGE_NT_SCALE,%ecx
81 mull %ecx
84 mull %ecx
139 movl _NT_SHIFT(%rsi),%ecx
140 andl $0x1F,%ecx // *** remove this line once 10.9 is GM ***
143 movl _NT_SCALE(%rsi),%ecx
/xnu-2422.115.4/osfmk/i386/commpage/
H A Dfifo_queues.s77 * %ecx = stack ptr
78 * Destroys %eax, %ecx, and %edx.
82 movl %esp,%ecx // save stack ptr here
101 pushl %ecx
103 popl %ecx
124 orl $-1, %ecx
126 cmpxchgl %ecx, 8(%edi) // try to take the spinlock
132 cmpxchgl %ecx, 8(%edi) // try 2nd time to take the spinlock
138 cmpxchgl %ecx, 8(%edi) // try 3rd time to take the spinlock
144 movl 4(%edi),%ecx // ge
[all...]
/xnu-2422.115.4/osfmk/i386/
H A Drtclock_asm_native.h74 movl RNT_SHIFT(%rdi),%ecx ; \
78 movl RNT_SCALE(%rdi),%ecx ; \
H A Dgdb_defs.h45 unsigned int ecx; member in struct:__anon896
H A Di386_lock.s350 movl $1, %ecx /* Set lock value */
496 movl $1,%ecx
497 cmovne %ecx,%eax /* 0 => unlocked, 1 => locked */
545 movl %eax, %ecx /* original value in %eax for cmpxchgl */
546 incl %ecx /* Increment reader refcount */
548 cmpxchgl %ecx, (LCK_RW_REGISTER) /* Attempt atomic exchange */
587 movl %eax, %ecx /* original value in %eax for cmpxchgl */
588 incl %ecx /* Increment reader refcount */
590 cmpxchgl %ecx, (LCK_RW_REGISTER) /* Attempt atomic exchange */
633 movl %eax, %ecx /* origina
[all...]
H A Dtss.h81 uint32_t ecx; member in struct:i386_tss
H A Dcpuid.c238 DBG("cpuid_fn(0x%08x) eax:0x%08x ebx:0x%08x ecx:0x%08x edx:0x%08x\n",
306 reg[ecx] = index; /* index starting at 0 */
319 cache_sets = bitfield32(reg[ecx], 31, 0) + 1;
488 bcopy((char *)&reg[ecx], &info_p->cpuid_vendor[8], 4);
529 info_p->cpuid_cache_linesize = bitfield32(reg[ecx], 7, 0);
530 assoc = bitfield32(reg[ecx],15,12);
545 info_p->cpuid_cache_size = bitfield32(reg[ecx],31,16);
570 info_p->cpuid_features = quad(reg[ecx], reg[edx]);
590 quad(reg[ecx], reg[edx]);
628 cmp->extensions = reg[ecx];
[all...]
H A Dcpuid.h56 * returned in %ecx:%edx to a CPUID request with %eax of 1:
127 * Bits returned in %ebx to a CPUID request with {%eax,%ecx} of (0x7,0x0}:
142 * returned in %ecx:%edx to a CPUID request with %eax of 0x80000001:
155 * returned in %ecx:%edx to a CPUID request with %eax of 0x80000007:
195 typedef enum { eax, ebx, ecx, edx } cpuid_register_t; enumerator in enum:__anon886
202 "=c" (data[ecx]),
206 "c" (data[ecx]),
H A Dpcb_native.c265 saved_state->ecx = state->ecx;
H A Dpcb.c650 saved_state->ecx = ts->ecx;
727 ts->ecx = saved_state->ecx;
826 saved_state->ecx = state->ecx;
1549 state->ecx = saved_state->ecx;
1629 state->uts.ts32.ecx = saved_state->ecx;
[all...]
/xnu-2422.115.4/osfmk/x86_64/
H A Dmachine_routines_asm.s169 movl RNT_SHIFT(%rsi),%ecx
204 test $(1 << 30), %ecx
212 mov %eax, %ecx
221 movzbl %cl, %ecx
222 shl $16, %ecx
223 xor %ecx, %edx
242 mov $(VMX_FAIL_INVALID), %ecx
246 cmovcl %ecx, %eax /* CF = 1, ZF = 0 */
260 mov $(VMX_FAIL_INVALID), %ecx
264 cmovcl %ecx,
[all...]
H A Dlocore.s117 movl %edi, %ecx
135 movl %edi, %ecx
151 movl %edi, %ecx
173 xorl %ecx, %ecx /* don't check if we're in the PFZ */
187 movl %edx,%ecx /* move by longwords first */
188 shrl $3,%ecx
194 movl %edx,%ecx /* now move remaining bytes */
195 andl $7,%ecx
243 movl (%rdi), %ecx
[all...]
H A Dbzero.s72 mov %eax, %ecx
H A Dstart.s113 movl $MSR_IA32_EFER,%ecx ;\
213 test $(1 << 30), %ecx
239 mov %eax, %ecx
248 movzbl %cl, %ecx
249 shl $16, %ecx
250 xor %ecx, %edx
320 xorl %ecx, %ecx /* zero 4th arg */
453 mov $(MSR_IA32_EFER), %ecx /* MSR number in ecx */
[all...]
H A Didt64.s249 mov %ecx, R32_ECX(%r15)
305 testl %ecx, %ecx
308 testl $(1<<16), %ecx /* Global? */
323 xor %ecx, %ecx /* If so, reset DR7 (the control) */
345 movl DS_DR0(%rax), %ecx /* If so, load the 32 bit DRs */
347 movl DS_DR1(%rax), %ecx
349 movl DS_DR2(%rax), %ecx
351 movl DS_DR3(%rax), %ecx
[all...]
H A Dpal_routines_asm.s186 movl %ecx,RNT_SHIFT(%r8)
/xnu-2422.115.4/tools/tests/execperf/
H A Dexit-asm.S10 movl $0, %ecx
37 mov %esp, %ecx
/xnu-2422.115.4/EXTERNAL_HEADERS/architecture/i386/
H A Dtss.h61 unsigned int ecx; member in struct:tss

Completed in 172 milliseconds

12