Home
last modified time | relevance | path

Searched refs:rdx (Results 1 – 25 of 47) sorted by relevance

12

/xnu-12377.41.6/osfmk/x86_64/
H A DWKdmCompress_new.s210 movq %rdx, tempTagsArray // &tempTagsArray[0]
211 movq %rdx, next_tag // next_tag always points to the one following the current tag
213 leaq 1024(%rdx), tempQPosArray // &tempQPosArray[0]
244 leaq 2048(%rdx), %rax // &tempLowBitsArray[0]
317 movq %rax, %rdx
362 movq tempQPosArray, %rdx // tempQPosArray
368 movl 4(%rdx), %eax // src_next[1]
369 addq $8, %rdx // src_next += 2;
372 orl -8(%rdx), %eax // temp = src_next[0] | (src_next[1] << 4)
373 cmpq %rdx, %rcx // source_end vs src_next
[all …]
H A Dcswitch.s74 movq %rdi, %rdx /* move thread arg to rdx */
76 movq %rdx,%gs:CPU_ACTIVE_THREAD /* new thread is active */
77 movq TH_KERNEL_STACK(%rdx),%rdx /* get its kernel stack */
78 lea -IKS_SIZE(%rdx),%rcx
81 movq %rdx,%gs:CPU_ACTIVE_STACK /* set current stack */
122 movq %rdx,%gs:CPU_ACTIVE_THREAD /* new thread is active */
123 movq TH_KERNEL_STACK(%rdx),%rdx /* get its kernel stack */
124 lea -IKS_SIZE(%rdx),%rcx
127 movq %rdx,%gs:CPU_ACTIVE_STACK /* set current stack */
189 movq %rdx,%rdi /* processor arg to routine */
H A DWKdmDecompress_new.s112 movzwq 4(%rdi, %r12), %rdx // get the index
113 movl %eax, 0(%rsi, %rdx) // store non-0 word in the destination buffer
123 movq %rdx, %r13 // scratch_buf
171 orq %rdx, %rax
172 movq %rax, %rdx
174 andq %r9, %rdx
177 movq %rdx, (%rcx)
201 orq %rdx, %rax
278 movl (%rsp,%rdx,4), %eax // read dictionary word
283 movl %eax, (%rsp,%rdx,4) // *dict_location = newly formed word
[all …]
H A Dmachine_routines_asm.s50 shlq $32,%rdx
51 orq %rdx,%rax
85 shrdq $32,%rdx,%rax /* %rdx:%rax >>= 32 */
174 mulq %rdx /* (tscUnits << shift) * scale */
175 shrdq $32,%rdx,%rax /* %rdx:%rax >>= 32 */
192 movq %rdx, %r14 /* wait result */
H A Dbzero.s75 movq %rdx, %rcx /* mov bytes */
93 movq %rdx, %rcx /* mov quads first */
97 movq %rdx,%rcx /* if necessary, mov 32 bit word */
H A Dbcopy.s68 movq %rdx,%rcx
95 movq %rdx,%rcx
118 movq %rdx,%rcx /* copy remainder by 32-bit words */
H A Dpal_routines_asm.s80 COPY_STACK(%rdx, %rcx, %r8)
84 mov 8(%rsi), %rdx
138 COPY_STACK(%rdx, %rcx, %r8)
H A Didt64.s241 push %rdx
254 pop %rdx
262 pop %rdx
440 push %rdx
474 mov %cr3, %rdx
485 movq TBL0_OFF_PTR_KERNEL_STACK_MASK+EXT(idt64_hndl_table0)(%rip), %rdx
486 mov (%rdx), %rdx /* Load kernel_stack_mask */
487 and %rdx, %rax
523 mov ISF64_TRAPNO(%rcx), %rdx
591 push %rdx /* eip */
[all …]
H A Dmcount.s65 pushq %rdx
77 popq %rdx
H A Dstart.s252 shl $32, %rdx
253 xor %rdx, %rax
361 push %rdx
501 movq 2(%rax), %rdx /* GDT base, skip limit word */
503 movb $(K_TSS), 5(%rdx, %rax) /* clear busy flag */
522 pop %rdx
H A Dlocore.s116 movq %rdx, %rdi
198 mov %rdx, %rcx /* move by longwords first */
305 decq %rdx /* decrement #bytes left in buffer */
/xnu-12377.41.6/osfmk/arm64/
H A DWKdmCompress_16k.s210 #define rdx x15 macro
406 mov rdx, tempQPosArray // tempQPosArray
410 ldr rax, [rdx], #8 // src_next[1]:src_next[0]
412 cmp rcx, rdx // source_end vs src_next
427 sub rdx, next_low_bits, rcx // next_low_bits - tempLowBitsArray (in bytes)
428 lsr rdx, rdx, #1 // num_tenbits_to_pack (in half-words)
570 mov rdx, #6
572 …madd r11, rax, rdx, rcx // r11 = rax * 6 (i.e. 4 byte word + 2 byte of…
575 mov rdx, #1365
576 mul rax, rax, rdx
[all …]
H A DWKdmCompress_4k.s208 #define rdx x15 macro
404 mov rdx, tempQPosArray // tempQPosArray
408 ldr rax, [rdx], #8 // src_next[1]:src_next[0]
410 cmp rcx, rdx // source_end vs src_next
425 sub rdx, next_low_bits, rcx // next_low_bits - tempLowBitsArray (in bytes)
426 lsr rdx, rdx, #1 // num_tenbits_to_pack (in half-words)
568 mov rdx, #6
570 …madd r11, rax, rdx, rcx // r11 = rax * 6 (i.e. 4 byte word + 2 byte of…
573 mov rdx, #1365
574 mul rax, rax, rdx
[all …]
H A DWKdmDecompress_4k.s116 #define rdx x6 macro
170 mov rdx, #0
174 str eax, [dest_buf, rdx] // store non-0 word in the destination buffer
385 ldr eax, [dictionary, rdx, lsl #2] // read dictionary word
387 str eax, [dictionary,rdx,lsl #2] // *dict_location = newly formed word
414 ldrb edx, [rbx, rdx] // qpos
415 str eax, [dictionary,rdx] // dictionary[qpos] = word
H A DWKdmDecompress_16k.s116 #define rdx x6 macro
170 mov rdx, #0
174 str eax, [dest_buf, rdx] // store non-0 word in the destination buffer
385 ldr eax, [dictionary, rdx, lsl #2] // read dictionary word
387 str eax, [dictionary,rdx,lsl #2] // *dict_location = newly formed word
414 ldrb edx, [rbx, rdx] // qpos
415 str eax, [dictionary,rdx] // dictionary[qpos] = word
/xnu-12377.41.6/osfmk/i386/
H A Dx86_hypercall.h67 uint64_t rdx; member
108 hvg_hypercall6(uint64_t code, uint64_t rdi, uint64_t rsi, uint64_t rdx, uint64_t rcx, uint64_t r8, … in hvg_hypercall6() argument
119 "=d" (output->rdx), /* %3: output[3] */ in hvg_hypercall6()
126 "d" (rdx), /* %10: arg[2] */ in hvg_hypercall6()
159 const uint64_t rdi, const uint64_t rsi, const uint64_t rdx, in hvg_hypercall3() argument
162 return hvg_hypercall6(code, rdi, rsi, rdx, 0, 0, 0, output); in hvg_hypercall3()
167 const uint64_t rdi, const uint64_t rsi, const uint64_t rdx, const uint64_t rcx, in hvg_hypercall4() argument
170 return hvg_hypercall6(code, rdi, rsi, rdx, rcx, 0, 0, output); in hvg_hypercall4()
175 … const uint64_t rdi, const uint64_t rsi, const uint64_t rdx, const uint64_t rcx, const uint64_t r8, in hvg_hypercall5() argument
178 return hvg_hypercall6(code, rdi, rsi, rdx, rcx, r8, 0, output); in hvg_hypercall5()
H A Drtclock_asm_native.h72 shlq $32,%rdx ; \
74 orq %rdx,%rax /* %rax := tsc */ ; \
79 shrdq $32,%rdx,%rax /* %rdx:%rax >>= 32 */ ; \
89 shlq $32,%rdx ; \
91 orq %rdx,%rax /* %rax := tsc */ ; \
96 shrdq $32,%rdx,%rax /* %rdx:%rax >>= 32 */ ; \
H A Dx86_hypercall.c87 memcpy(&vmcore->tag[reg_size * 3], &output.rdx, reg_size); in hvg_hcall_trigger_dump()
166 memcpy(&uuid[24], &output.rdx, 8); in hvg_hcall_get_bootsessionuuid()
/xnu-12377.41.6/tests/
H A Dldt_code32.s43 movq %rdx, %r9
44 xorq %rdx, %rdx
46 shlq $32, %rdx
47 orq %rdx, %rax
48 movq %r9, %rdx
63 pushq %rdx /* Push arg to 32-bit code */
260 movq 0x34(%rbp), %rdx
/xnu-12377.41.6/bsd/dev/i386/
H A Dsystemcalls.c419 regs->rdx = uthread->uu_rval[1]; in unix_syscall64()
423 regs->rdx = ((u_int)uthread->uu_rval[1]); in unix_syscall64()
431 regs->rdx = 0; in unix_syscall64()
445 error, regs->rax, regs->rdx); in unix_syscall64()
521 regs->rdx = uthread->uu_rval[1]; in unix_syscall_return()
525 regs->rdx = ((u_int)uthread->uu_rval[1]); in unix_syscall_return()
533 regs->rdx = 0; in unix_syscall_return()
546 error, regs->rax, regs->rdx); in unix_syscall_return()
H A Ddtrace_isa.c197 return (uint64_t)(regs->ss_64.rdx); in dtrace_getreg()
310 "=d" (regs->ss_64.rdx), in dtrace_vmcall()
319 "d" (regs->ss_64.rdx), in dtrace_vmcall()
339 "=d" (regs->ss_64.rdx) in dtrace_cpuid()
344 "d" (regs->ss_64.rdx)); in dtrace_cpuid()
371 regs.ss_64.rdx != 0x756e782d) { in dtrace_applepv_available()
389 features = regs.ss_64.rdx; in dtrace_applepv_available()
427 memcpy(&str[24], &regs.ss_64.rdx, 8); in dtrace_livedump()
/xnu-12377.41.6/libsyscall/custom/
H A D__vfork.s104 movq __current_pid@GOTPCREL(%rip), %rdx
106 cmpxchgl %ecx, (%rdx)
126 movq __current_pid@GOTPCREL(%rip), %rdx
128 addl $1, (%rdx)
/xnu-12377.41.6/libsyscall/wrappers/
H A Dmach_absolute_time.s130 shlq $32,%rdx // rax := ((edx << 32) | eax), ie 64-bit tsc
131 orq %rdx,%rax
145 shrdq $32,%rdx,%rax // divide by 2**32
/xnu-12377.41.6/osfmk/i386/commpage/
H A Dfifo_queues.s270 movq $0,(%rdx,%rsi) // zero forward link in new element
299 movq %rsi,(%rdx,%rax) // point to new element from last
342 movq (%rdx,%rax),%rsi// get ptr to 2nd element in q
/xnu-12377.41.6/osfmk/kdp/ml/x86_64/
H A Dkdp_machdep.c139 state->rdx = saved_state->rdx; in kdp_getstate()
174 saved_state->rdx = state->rdx; in kdp_setstate()

12