Home
last modified time | relevance | path

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

12

/xnu-8020.140.41/osfmk/i386/
H A Drtclock_asm.h76 movq %gs:CPU_PROCESSOR,%rdx /* get processor */ ; \
77 movq %rcx,THREAD_TIMER(%rdx) /* set current timer */ ; \
79 subq (old##_STATE)+TIMER_TSTAMP(%rdx),%rax /* compute elapsed */; \
80 TIMER_UPDATE(%rdx,%rax,old##_STATE) /* update timer */ ; \
81 leaq (new##_STATE)(%rdx),%rcx /* point to new state */ ; \
82 movq %rcx,CURRENT_STATE(%rdx) /* set current state */ ; \
106 movq %gs:CPU_PROCESSOR,%rdx /* get processor */ ; \
107 movq THREAD_TIMER(%rdx),%rcx /* get current timer */ ; \
110 movq KERNEL_TIMER(%rdx),%rcx /* get kernel timer */ ; \
113 movq CURRENT_STATE(%rdx),%rcx /* get current state */ ; \
[all …]
H A Dx86_hypercall.h66 uint64_t rdx; 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
117 "=d" (output->rdx), /* %3: output[3] */ in hvg_hypercall6()
124 "d" (rdx), /* %10: arg[2] */ in hvg_hypercall6()
157 const uint64_t rdi, const uint64_t rsi, const uint64_t rdx, in hvg_hypercall3() argument
160 return hvg_hypercall6(code, rdi, rsi, rdx, 0, 0, 0, output); in hvg_hypercall3()
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.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 */ ; \
/xnu-8020.140.41/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
88 movq %rdx,%rcx
110 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
/xnu-8020.140.41/osfmk/arm64/
H A DWKdmCompress_4k.s204 #define rdx x15 macro
399 mov rdx, tempQPosArray // tempQPosArray
403 ldr rax, [rdx], #8 // src_next[1]:src_next[0]
405 cmp rcx, rdx // source_end vs src_next
420 sub rdx, next_low_bits, rcx // next_low_bits - tempLowBitsArray (in bytes)
421 lsr rdx, rdx, #1 // num_tenbits_to_pack (in half-words)
563 mov rdx, #6
565 …madd r11, rax, rdx, rcx // r11 = rax * 6 (i.e. 4 byte word + 2 byte of…
568 mov rdx, #1365
569 mul rax, rax, rdx
[all …]
H A DWKdmCompress_16k.s206 #define rdx x15 macro
401 mov rdx, tempQPosArray // tempQPosArray
405 ldr rax, [rdx], #8 // src_next[1]:src_next[0]
407 cmp rcx, rdx // source_end vs src_next
422 sub rdx, next_low_bits, rcx // next_low_bits - tempLowBitsArray (in bytes)
423 lsr rdx, rdx, #1 // num_tenbits_to_pack (in half-words)
565 mov rdx, #6
567 …madd r11, rax, rdx, rcx // r11 = rax * 6 (i.e. 4 byte word + 2 byte of…
570 mov rdx, #1365
571 mul rax, rax, rdx
[all …]
H A DWKdmDecompress_16k.s112 #define rdx x6 macro
165 mov rdx, #0
169 str eax, [dest_buf, rdx] // store non-0 word in the destination buffer
380 ldr eax, [dictionary, rdx, lsl #2] // read dictionary word
382 str eax, [dictionary,rdx,lsl #2] // *dict_location = newly formed word
409 ldrb edx, [rbx, rdx] // qpos
410 str eax, [dictionary,rdx] // dictionary[qpos] = word
H A DWKdmDecompress_4k.s112 #define rdx x6 macro
165 mov rdx, #0
169 str eax, [dest_buf, rdx] // store non-0 word in the destination buffer
380 ldr eax, [dictionary, rdx, lsl #2] // read dictionary word
382 str eax, [dictionary,rdx,lsl #2] // *dict_location = newly formed word
409 ldrb edx, [rbx, rdx] // qpos
410 str eax, [dictionary,rdx] // dictionary[qpos] = word
/xnu-8020.140.41/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-8020.140.41/bsd/dev/i386/
H A Dsystemcalls.c427 regs->rdx = uthread->uu_rval[1]; in unix_syscall64()
431 regs->rdx = ((u_int)uthread->uu_rval[1]); in unix_syscall64()
439 regs->rdx = 0; in unix_syscall64()
453 error, regs->rax, regs->rdx); in unix_syscall64()
529 regs->rdx = uthread->uu_rval[1]; in unix_syscall_return()
533 regs->rdx = ((u_int)uthread->uu_rval[1]); in unix_syscall_return()
541 regs->rdx = 0; in unix_syscall_return()
554 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-8020.140.41/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-8020.140.41/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-8020.140.41/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-8020.140.41/osfmk/kdp/ml/x86_64/
H A Dkdp_machdep.c138 state->rdx = saved_state->rdx; in kdp_getstate()
173 saved_state->rdx = state->rdx; in kdp_setstate()
H A Dkdp_vm.c118 tstate->rdx = cpstate->rdx; in kern_collectth_state()

12