Home
last modified time | relevance | path

Searched refs:ecx (Results 1 – 25 of 38) sorted by relevance

12

/xnu-12377.41.6/osfmk/i386/commpage/
H A Dfifo_queues.s82 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
169 orl $-1, %ecx
171 cmpxchgl %ecx, 8(%edi) // try to take the spinlock
177 cmpxchgl %ecx, 8(%edi) // try 2nd time to take the spinlock
[all …]
/xnu-12377.41.6/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, %ecx
102 cmovs %eax, %ecx
[all …]
H A D__syscall.s35 popl %ecx // ret addr
37 pushl %ecx
40 pushl %ecx // caller "pop" will work
H A D__pipe.s35 movl 4(%esp),%ecx
36 movl %eax,(%ecx)
37 movl %edx,4(%ecx)
H A D__getpid.s43 popl %ecx ; \
44 leal L__current_pid_addr-0b(%ecx), %ecx
46 #define __current_pid (%ecx)
H A D__gettimeofday.s66 mov 4(%esp),%ecx
67 mov %eax,(%ecx)
68 mov %edx,4(%ecx)
/xnu-12377.41.6/osfmk/x86_64/
H A Dmachine_routines_asm.s171 movl RNT_SHIFT(%rsi),%ecx
197 test %ecx, %ecx
227 mov $(VMX_FAIL_INVALID), %ecx
231 cmovcl %ecx, %eax /* CF = 1, ZF = 0 */
245 mov $(VMX_FAIL_INVALID), %ecx
249 cmovcl %ecx, %eax /* CF = 1, ZF = 0 */
H A Dlocore.s115 movl %edi, %ecx
133 movl %edi, %ecx
149 movl %edi, %ecx
185 xorl %ecx, %ecx /* don't check if we're in the PFZ */
205 movl %edx, %ecx /* now move remaining bytes */
206 andl $7, %ecx
254 movl (%rdi), %ecx
257 mov %ecx, (%rsi)
H A Dstart.s111 movl $MSR_IA32_EFER,%ecx ;\
211 test $(1 << 30), %ecx
237 mov %eax, %ecx
246 movzbl %cl, %ecx
247 shl $16, %ecx
248 xor %ecx, %edx
318 xorl %ecx, %ecx /* zero 4th arg */
451 mov $(MSR_IA32_EFER), %ecx /* MSR number in ecx */
585 mov PROT_MODE_START+REAL_MODE_BOOTSTRAP_OFFSET, %ecx
586 jmp *%ecx
H A Didt64.s242 mov $(MSR_IA32_GS_BASE), %ecx
464 mov $(MSR_IA32_GS_BASE), %ecx
664 movl $0xdeadc0de, %ecx /* Write a sentinel so higher-level code knows this was aborted */
1034 movl R32_ECX(%r15), %ecx
1240 xor %ecx, %ecx
1284 mov %ecx, R32_ECX(%r15)
1298 xor %ecx, %ecx
1361 testl %ecx, %ecx
1366 movl $2, %ecx
1397 xor %ecx, %ecx /* If so, reset DR7 (the control) */
[all …]
H A Dbzero.s89 mov %eax, %ecx
/xnu-12377.41.6/osfmk/i386/
H A Drtclock_asm_native.h73 movl RNT_SHIFT(%rdi),%ecx ; \
77 movl RNT_SCALE(%rdi),%ecx ; \
90 movl RNT_SHIFT(%rdi),%ecx ; \
94 movl RNT_SCALE(%rdi),%ecx ; \
H A Dcpuid.c386 reg[ecx] = index; /* index starting at 0 */ in cpuid_set_cache_info()
400 cache_sets = bitfield32(reg[ecx], 31, 0) + 1; in cpuid_set_cache_info()
581 bcopy((char *)&reg[ecx], &info_p->cpuid_vendor[8], 4); in cpuid_set_generic_info()
623 info_p->cpuid_cache_linesize = bitfield32(reg[ecx], 7, 0); in cpuid_set_generic_info()
627 uint32_t assoc = bitfield32(reg[ecx], 15, 12); in cpuid_set_generic_info()
643 info_p->cpuid_cache_size = bitfield32(reg[ecx], 31, 16); in cpuid_set_generic_info()
671 info_p->cpuid_features = quad(reg[ecx], reg[edx]); in cpuid_set_generic_info()
694 quad(reg[ecx], reg[edx]); in cpuid_set_generic_info()
732 cmp->extensions = reg[ecx]; in cpuid_set_generic_info()
757 ctp->ACNT_MCNT = bitfield32(reg[ecx], 0, 0); in cpuid_set_generic_info()
[all …]
H A Dcpuid.h329 typedef enum { eax, ebx, ecx, edx } cpuid_register_t; enumerator
336 "=c" (data[ecx]), in cpuid()
340 "c" (data[ecx]), in cpuid()
H A Dtss.h81 uint32_t ecx; member
H A Dpcb.c684 saved_state->ecx = ts->ecx; in set_thread_state32()
786 ts->ecx = saved_state->ecx; in get_thread_state32()
952 saved_state->ecx = state->ecx; in machine_thread_set_state()
1884 state->ecx = saved_state->ecx; in machine_thread_get_kern_state()
1966 state->uts.ts32.ecx = saved_state->ecx; in machine_thread_get_kern_state()
/xnu-12377.41.6/libsyscall/wrappers/
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-12377.41.6/EXTERNAL_HEADERS/corecrypto/
H A Dcc_runtime_config.h93 unsigned int eax, ebx, ecx, edx; in _cpu_supports_rdrand() local
94 __cpuid(1, eax, ebx, ecx, edx); in _cpu_supports_rdrand()
95 return ecx & bit_RDRND; in _cpu_supports_rdrand()
100 unsigned int eax, ebx, ecx, edx; in _cpu_supports_adx() local
101 __cpuid_count(7, 0, eax, ebx, ecx, edx); in _cpu_supports_adx()
/xnu-12377.41.6/osfmk/corecrypto/
H A Dcc_runtime_config.h120 unsigned int eax, ebx, ecx, edx; in _cpu_supports_rdrand() local
121 __cpuid(1, eax, ebx, ecx, edx); in _cpu_supports_rdrand()
122 return ecx & bit_RDRND; in _cpu_supports_rdrand()
128 unsigned int eax, ebx, ecx, edx; in _cpu_supports_adx() local
129 __cpuid_count(7, 0, eax, ebx, ecx, edx); in _cpu_supports_adx()
/xnu-12377.41.6/bsd/dev/i386/
H A Dcpu_copy_in_cksum.s548 shr $16, %ecx
549 add %ecx, %eax
552 movzwl partialw, %ecx
554 add %ecx, %eax
558 movzwl %ax, %ecx
560 add %ecx, %eax
566 movzwl %ax, %ecx
568 add %ecx, %eax
/xnu-12377.41.6/tools/tests/execperf/
H A Dexit-asm.S11 movl $0, %ecx
38 mov %esp, %ecx
/xnu-12377.41.6/tests/
H A Dldt_code32.s164 pushl %ecx
165 movl %esp, %ecx /* stack ptr is expected in %ecx */
168 popl %ecx
/xnu-12377.41.6/osfmk/arm64/
H A DWKdmDecompress_4k.s115 #define ecx w5 macro
148 mov ecx, #MZV_MAGIC
149 cmp eax, ecx // is the alternate packer used (i.e. is MZV page)?
384 ldrh ecx, [r11], #2 // lower 10-bits from *next_low_bits++
386 bfm eax, ecx, #0, #9 // pad the lower 10-bits from *next_low_bits
H A DWKdmDecompress_16k.s115 #define ecx w5 macro
148 mov ecx, #MZV_MAGIC
149 cmp eax, ecx // is the alternate packer used (i.e. is MZV page)?
384 ldrh ecx, [r11], #2 // lower 10-bits from *next_low_bits++
386 bfm eax, ecx, #0, #9 // pad the lower 10-bits from *next_low_bits
/xnu-12377.41.6/EXTERNAL_HEADERS/architecture/i386/
H A Dtss.h61 unsigned int ecx; member

12