Home
last modified time | relevance | path

Searched refs:rcx (Results 1 – 25 of 48) sorted by relevance

12

/xnu-8020.140.41/osfmk/x86_64/
H A Dcswitch.s78 lea -IKS_SIZE(%rdx),%rcx
79 add EXT(kernel_stack_size)(%rip),%rcx /* point to stack top */
82 movq %rcx,%gs:CPU_KERNEL_STACK /* set stack top */
84 movq KSS_RSP(%rcx),%rsp /* switch stacks */
85 movq KSS_RBX(%rcx),%rbx /* restore registers */
86 movq KSS_RBP(%rcx),%rbp
87 movq KSS_R12(%rcx),%r12
88 movq KSS_R13(%rcx),%r13
89 movq KSS_R14(%rcx),%r14
90 movq KSS_R15(%rcx),%r15
[all …]
H A Didt64.s172 pushq %rcx
182 movq %cr2, %rcx
183 cmpq %rbx, %rcx
200 leaq rip_cacheline_read(%rip), %rcx
201 cmpq %rcx, %rbx
203 leaq rip_cacheline_read_end(%rip), %rcx
204 cmpq %rcx, %rbx
209 popq %rcx
219 popq %rcx
220 movq %rcx, %cr2
[all …]
H A Dpal_routines_asm.s72 push %rcx
78 sub %rcx, %rsp /* make room for stack contents */
80 COPY_STACK(%rdx, %rcx, %r8)
83 mov 0(%rsi), %rcx
95 mov -56(%rbp), %rcx /* load s_c_s into %rcx */
96 add %rcx, %rsp /* discard stack contents */
99 pop %rcx
130 push %rcx
136 sub %rcx, %rsp /* make room for stack contents */
138 COPY_STACK(%rdx, %rcx, %r8)
[all …]
H A Dbcopy.s68 movq %rdx,%rcx
88 movq %rdx,%rcx
92 cmpq %rcx,%rax /* overlapping && src < dst? */
102 addq %rcx,%rdi /* copy backwards */
103 addq %rcx,%rsi
106 andq $7,%rcx /* any fractional bytes? */
110 movq %rdx,%rcx /* copy remainder by 32-bit words */
111 shrq $3,%rcx
H A Dbzero.s75 movq %rdx, %rcx /* mov bytes */
91 orq %rcx, %rax
93 movq %rdx, %rcx /* mov quads first */
94 shrq $1, %rcx
97 movq %rdx,%rcx /* if necessary, mov 32 bit word */
98 andq $1,%rcx
109 movq %rsi,%rcx
H A DWKdmCompress_new.s198 #define dict_location %rcx
308 movq tempTagsArray, %rcx // &tempTagsArray[0]
312 movq 8(%rcx), %rax // w3
313 addq $16, %rcx // tempTagsArray += 16;
316 orq -16(%rcx), %rax // w3
320 cmpq %rcx, next_tag // cmp next_tag vs dest_buf
337 leaq (tempQPosArray,%rax,4), %rcx // endQPosArray = tempQPosArray + num_source_words
338 cmpq %rcx, next_qp // next_qp vs endQPosArray
340 movq %rcx, %rax
360 cmpq tempQPosArray, %rcx // endQPosArray vs tempQPosArray
[all …]
H A DWKdmDecompress_new.s163 movq %r13, %rcx // next_word
177 movq %rdx, (%rcx)
178 movq %rax, 8(%rcx)
179 addq $16, %rcx // next_tags += 16
194 leaq 8(%rbx), %rcx // next_qpos
204 movq %rax, -8(%rcx)
205 addq $8, %rcx // next_qpos+=8
220 movq %r11, %rcx // next_low_bits
232 cmp %r13, %rcx
234 mov %rax, (%rcx)
[all …]
H A Dstart.s226 leaq _vstart(%rip), %rcx
229 or %rcx, %rax
239 shl $16, %rcx
240 xor %rcx, %rax
244 lea (%rip), %rcx
245 shr $21, %rcx
308 leaq EXT(hibernate_kernel_entrypoint)(%rip),%rcx
313 orq %rcx, %rax
360 push %rcx
398 mov $MSR_IA32_KERNEL_GS_BASE, %rcx
[all …]
H A Dlocore.s198 mov %rdx, %rcx /* move by longwords first */
199 shr $3, %rcx
222 movq (%rdi), %rcx
223 mov %rcx, (%rsi)
270 movq (%rdi), %rcx
273 mov %rcx, (%rsi)
309 cmpq $0,%rcx /* get OUT len ptr */
312 movq %rsi,(%rcx) /* else set OUT arg to xfer len */
H A Dmcount.s66 pushq %rcx
76 popq %rcx
H A Dmachine_routines_asm.s203 movq %r12,%rcx /* continuation */
207 call *%rcx /* call continuation */
/xnu-8020.140.41/osfmk/i386/
H A Drtclock_asm.h71 movq %gs:CPU_ACTIVE_THREAD,%rcx /* get thread */ ; \
72 subq (old##_TIMER)+TIMER_TSTAMP(%rcx),%rax /* compute elapsed */; \
73 TIMER_UPDATE(%rcx,%rax,old##_TIMER) /* update timer */ ; \
74 leaq (new##_TIMER)(%rcx),%rcx /* point to new timer */ ; \
75 movq %rsi,TIMER_TSTAMP(%rcx) /* set timestamp */ ; \
77 movq %rcx,THREAD_TIMER(%rdx) /* set current timer */ ; \
81 leaq (new##_STATE)(%rdx),%rcx /* point to new state */ ; \
82 movq %rcx,CURRENT_STATE(%rdx) /* set current state */ ; \
83 movq %rsi,TIMER_TSTAMP(%rcx) /* set timestamp */
107 movq THREAD_TIMER(%rdx),%rcx /* get current timer */ ; \
[all …]
H A Dx86_hypercall.h67 uint64_t rcx; member
106 hvg_hypercall6(uint64_t code, uint64_t rdi, uint64_t rsi, uint64_t rdx, uint64_t rcx, uint64_t r8, … in hvg_hypercall6() argument
118 "=c" (output->rcx), /* %4: output[4] */ in hvg_hypercall6()
125 "c" (rcx), /* %11: arg[3] */ in hvg_hypercall6()
165 const uint64_t rdi, const uint64_t rsi, const uint64_t rdx, const uint64_t rcx, in hvg_hypercall4() argument
168 return hvg_hypercall6(code, rdi, rsi, rdx, rcx, 0, 0, output); in hvg_hypercall4()
173 … const uint64_t rdi, const uint64_t rsi, const uint64_t rdx, const uint64_t rcx, const uint64_t r8, in hvg_hypercall5() argument
176 return hvg_hypercall6(code, rdi, rsi, rdx, rcx, r8, 0, output); in hvg_hypercall5()
H A Drtclock_asm_native.h78 mulq %rcx /* delta * scale */ ; \
95 mulq %rcx /* delta * scale */ ; \
/xnu-8020.140.41/tests/
H A Dhvtest_x86_asm.s24 pushq %rcx
26 xor %rcx, %rcx
44 incq %rcx
52 incq %rcx
60 incq %rcx
68 incq %rcx
82 pushq %rcx
84 xor %rcx, %rcx
90 incq %rcx
98 incq %rcx
[all …]
H A Dldt_code32.s62 pushq %rcx /* Push the 64-bit fn ptr that compat mode will call */
240 pushq %rcx
267 movq 0x3c(%rbp), %rcx
281 popq %rcx
/xnu-8020.140.41/osfmk/arm64/
H A DWKdmDecompress_16k.s110 #define rcx x5 macro
151 mov rcx, #(PAGES_SIZE_IN_KBYTES*1024) // number of bytes to zero out
161 subs rcx, rcx, #256
189 mov rcx, scratch // tempTagsArray
223 st1.4s {v2,v3,v4,v5}, [rcx], #64 // write 64 tags into tempTagsArray
237 add rcx, scratch, #(1024*scale) // tempQPosArray
247 str q2, [rcx], #16
257 str d2, [rcx], #8 // write 16 tags into tempTagsArray
265 add rcx, scratch, #(2048*scale) // tempLowBitsArray
296 str d4, [rcx], #6 // write 3 low 10-bits
[all …]
H A DWKdmDecompress_4k.s110 #define rcx x5 macro
151 mov rcx, #(PAGES_SIZE_IN_KBYTES*1024) // number of bytes to zero out
161 subs rcx, rcx, #256
189 mov rcx, scratch // tempTagsArray
223 st1.4s {v2,v3,v4,v5}, [rcx], #64 // write 64 tags into tempTagsArray
237 add rcx, scratch, #(1024*scale) // tempQPosArray
247 str q2, [rcx], #16
257 str d2, [rcx], #8 // write 16 tags into tempTagsArray
265 add rcx, scratch, #(2048*scale) // tempLowBitsArray
296 str d4, [rcx], #6 // write 3 low 10-bits
[all …]
H A DWKdmCompress_4k.s202 #define rcx x14 macro
348 mov rcx, tempTagsArray // &tempTagsArray[0]
351 ld1.2s {v0,v1,v2,v3},[rcx],#32
367 cmp next_tag, rcx
376 add rcx, tempQPosArray, rax, lsl #3 // endQPosArray = tempQPosArray + 2*num_source_words
381 cmp rcx, next_qp // endQPosArray vs next_qp
383 sub rax, rcx, next_qp
396 cmp rcx, tempQPosArray // endQPosArray vs tempQPosArray
405 cmp rcx, rdx // source_end vs src_next
419 add rcx, scratch, #(2048*scale) // tempLowBitsArray
[all …]
H A DWKdmCompress_16k.s204 #define rcx x14 macro
350 mov rcx, tempTagsArray // &tempTagsArray[0]
353 ld1.2s {v0,v1,v2,v3},[rcx],#32
369 cmp next_tag, rcx
378 add rcx, tempQPosArray, rax, lsl #3 // endQPosArray = tempQPosArray + 2*num_source_words
383 cmp rcx, next_qp // endQPosArray vs next_qp
385 sub rax, rcx, next_qp
398 cmp rcx, tempQPosArray // endQPosArray vs tempQPosArray
407 cmp rcx, rdx // source_end vs src_next
421 add rcx, scratch, #(2048*scale) // tempLowBitsArray
[all …]
/xnu-8020.140.41/bsd/dev/i386/
H A Ddtrace_isa.c199 return (uint64_t)(regs->ss_64.rcx); in dtrace_getreg()
311 "=c" (regs->ss_64.rcx), in dtrace_vmcall()
320 "c" (regs->ss_64.rcx), in dtrace_vmcall()
338 "=c" (regs->ss_64.rcx), in dtrace_cpuid()
343 "c" (regs->ss_64.rcx), in dtrace_cpuid()
363 if ((regs.ss_64.rcx & _Bit(31)) != 0) { in dtrace_applepv_available()
370 regs.ss_64.rcx != 0x76702d65 || in dtrace_applepv_available()
428 memcpy(&str[32], &regs.ss_64.rcx, 8); in dtrace_livedump()
/xnu-8020.140.41/libsyscall/custom/
H A D__getpid.s94 leaq __current_pid(%rip), %rcx
96 cmpxchgl %edx, (%rcx)
H A D__vfork.s113 movq __current_pid@GOTPCREL(%rip), %rcx
115 addl $1, (%rcx)
/xnu-8020.140.41/osfmk/kdp/ml/x86_64/
H A Dkdp_machdep.c137 state->rcx = saved_state->rcx; in kdp_getstate()
172 saved_state->rcx = state->rcx; in kdp_setstate()
H A Dkdp_vm.c117 tstate->rcx = cpstate->rcx; in kern_collectth_state()

12