Home
last modified time | relevance | path

Searched refs:rdi (Results 1 – 25 of 51) sorted by relevance

123

/xnu-11215.1.10/san/memory/
H A Dkasan-test-x86_64.s62 movq %rbx, JB_RBX(%rdi)
63 movq %rbp, JB_RBP(%rdi)
64 movq %r12, JB_R12(%rdi)
65 movq %r13, JB_R13(%rdi)
66 movq %r14, JB_R14(%rdi)
67 movq %r15, JB_R15(%rdi)
71 movq %rax, JB_RIP(%rdi)
74 movq %rax, JB_RSP(%rdi)
77 fnstcw JB_FPCONTROL(%rdi)
80 stmxcsr JB_MXCSR(%rdi)
[all …]
/xnu-11215.1.10/osfmk/i386/
H A Drtclock_asm_native.h67 0: movl RNT_GENERATION(%rdi),%esi ; \
73 movl RNT_SHIFT(%rdi),%ecx ; \
75 subq RNT_TSC_BASE(%rdi),%rax /* tsc - tsc_base */ ; \
77 movl RNT_SCALE(%rdi),%ecx ; \
80 addq RNT_NS_BASE(%rdi),%rax /* add ns_base */ ; \
81 cmpl RNT_GENERATION(%rdi),%esi /* repeat if changed */ ; \
85 0: movl RNT_GENERATION(%rdi),%esi ; \
90 movl RNT_SHIFT(%rdi),%ecx ; \
92 subq RNT_TSC_BASE(%rdi),%rax /* tsc - tsc_base */ ; \
94 movl RNT_SCALE(%rdi),%ecx ; \
[all …]
H A Dx86_hypercall.h65 uint64_t rdi; 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
117 "=D" (output->rdi), /* %1: output[1] */ in hvg_hypercall6()
124 "D" (rdi), /* %8: arg[0] */ in hvg_hypercall6()
143 const uint64_t rdi, in hvg_hypercall1() argument
146 return hvg_hypercall6(code, rdi, 0, 0, 0, 0, 0, output); in hvg_hypercall1()
151 const uint64_t rdi, const uint64_t rsi, in hvg_hypercall2() argument
154 return hvg_hypercall6(code, rdi, rsi, 0, 0, 0, 0, output); in hvg_hypercall2()
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()
[all …]
H A Di386_lock.s60 #define LOAD_STRING_ARG0(label) leaq label(%rip), %rdi ;
116 movb $0, (%rdi) /* clear the lock */
130 movb (%rdi), %al /* Load byte at address */
133 lock; cmpxchg %cl,(%rdi) /* attempt atomic compare exchange */
148 movb $0, (%rdi) /* Clear the lock byte */
H A Dx86_hypercall.c85 memcpy(&vmcore->tag[reg_size * 1], &output.rdi, reg_size); in hvg_hcall_trigger_dump()
141 *mabs_offset = output.rdi; in hvg_hcall_get_mabs_offset()
164 memcpy(&uuid[8], &output.rdi, 8); in hvg_hcall_get_bootsessionuuid()
H A Dbsd_i386.c409 regs->rdi, regs->rsi, regs->rdx); in machdep_syscall64()
416 regs->rax = (*entry->routine.args64_1)(regs->rdi); in machdep_syscall64()
419 regs->rax = (*entry->routine.args64_2)(regs->rdi, regs->rsi); in machdep_syscall64()
423 regs->rax = (*entry->routine.args64_3)(regs->rdi, regs->rsi, regs->rdx); in machdep_syscall64()
428 error = (*entry->routine.args64_bsd_3)(&rval, regs->rdi, regs->rsi, regs->rdx); in machdep_syscall64()
652 regs->rdi, regs->rsi, regs->rdx, regs->r10, 0); in mach_call_munger64()
667 __nochk_memcpy(&args.arg1, &regs->rdi, args_in_regs * sizeof(syscall_arg_t)); in mach_call_munger64()
/xnu-11215.1.10/osfmk/x86_64/
H A Dlocore.s116 movq %rdx, %rdi
121 movl %edx, (%rdi)
195 xchg %rdi, %rsi /* source %rsi, dest %rdi */
222 movq (%rdi), %rcx
238 movw (%rdi), %cx
254 movl (%rdi), %ecx
270 movq (%rdi), %rcx
288 pushq %rdi
289 xchgq %rdi, %rsi /* source %rsi, dest %rdi */
298 testq %rdi,%rdi /* if kernel address is ... */
[all …]
H A Dmachine_routines_asm.s83 movq %rdi,%rax
88 mov %rdi,%rax
99 addq %rdi,RNT_TSC_BASE(%rsi)
170 movq %rdi,%rax /* copy value (in TSC units) to convert */
190 movq %rdi, %r12 /* continuation */
204 movq %r13,%rdi /* continuation param */
208 movq %gs:CPU_ACTIVE_THREAD,%rdi
215 callq *%rdi
225 push %rdi
234 pop %rdi
H A DWKdmDecompress_new.s89 movl 0(%rdi), %eax // read the 1st word from the header
111 movl 0(%rdi, %r12), %eax // get the word
112 movzwq 4(%rdi, %r12), %rdx // get the index
158 leaq 268(%rdi), %r10 // TAGS_AREA_END
159 leaq 12(%rdi), %rax // TAGS_AREA_START
167 movl 12(%rdi,%r8, 4), %eax
168 movl 12(%rdi,%r8, 4), %edx
187 mov 4(%rdi), %eax // WKdm header qpos end
188 leaq (%rdi,%rax,4), %r9 // QPOS_AREA_END
189 mov 0(%rdi), %eax // WKdm header qpos start
[all …]
H A Dbcopy.s67 movq %rdi, %rax /* return destination */
78 xchgq %rsi,%rdi
87 xchgq %rsi,%rdi
97 movq %rdi,%rax
109 addq %rcx,%rdi /* copy backwards */
111 decq %rdi
120 subq $7,%rdi
H A DWKdmCompress_new.s195 #define next_input_word %rdi
216 leaq CHKPT_BYTES(%rdi), checkpoint // checkpoint = src_buf + CHKPT_BYTES
217 leaq 4096(%rdi), end_of_input // end_of_input = src_buf + num_input_words
307 movq dest_buf, %rdi // dest_buf
315 addq $4, %rdi // dest_buf += 4;
321 movl %eax, 8(%rdi) // save at *(dest_buf + HEADER_SIZE_IN_WORDS)
359 movq next_full_patt, %rdi // next_full_patt
371 addq $4, %rdi // dest_next++;
374 movl %eax, -4(%rdi) // dest_next[0] = temp;
378 movq %rdi, %rax // boundary_tmp
[all …]
H A Dcswitch.s74 movq %rdi, %rdx /* move thread arg to rdx */
120 movq %rdi,%rax /* return old thread */
149 movq %rax, %rdi /* this is the old thread from Switch_context */
176 movq %rdi,%rax /* get old thread */
189 movq %rdx,%rdi /* processor arg to routine */
H A Dmcount.s63 pushq %rdi
69 movq 8(%rax),%rdi // mcount's caller's return address
79 popq %rdi
H A Dbzero.s73 movq %rdi, %r8
87 movq %rdi, %r8
H A Dpal_routines_asm.s90 call *%rdi /* call EFI runtime */
183 movq %rdi,RNT_TSC_BASE(%r8)
/xnu-11215.1.10/osfmk/i386/commpage/
H A Dfifo_queues.s256 cmpl $0,16(%rdi) // sniff the lockword
275 cmpxchgl %ecx,16(%rdi) // try to take the spinlock
281 cmpxchgl %ecx,16(%rdi) // try 2nd time to take the spinlock
287 cmpxchgl %ecx,16(%rdi) // try 3rd time to take the spinlock
293 movq 8(%rdi),%rax // get ptr to last element in q
296 movq %rsi,(%rdi) // q empty so this is first element
301 movq %rsi,8(%rdi) // new element becomes last in q
302 movl $0,16(%rdi) // unlock spinlock
321 cmpxchgl %ecx,16(%rdi) // try to take the spinlock
327 cmpxchgl %ecx,16(%rdi) // try 2nd time to take the spinlock
[all …]
/xnu-11215.1.10/libsyscall/custom/
H A D__vfork.s108 popq %rdi // return address in %rdi
112 pushq %rdi // put return address back on stack for cerror
116 movq %rax, %rdi
123 jmp *%rdi
129 jmp *%rdi
H A D__pipe.s44 movl %eax, (%rdi)
45 movl %edx, 4(%rdi)
H A D__gettimeofday.s88 movq %rax, (%rdi)
89 movl %edx, 8(%rdi)
H A Dcustom.s102 movq %rax, %rdi
113 movq %rax, %rdi
/xnu-11215.1.10/tests/
H A Dldt_code32.s66 ljmpq *(%rdi)
238 pushq %rdi
246 movq 0x24(%rbp), %rdi
283 popq %rdi
/xnu-11215.1.10/osfmk/arm64/
H A DWKdmCompress_4k.s210 #define rdi x0 /* after some point, x0/rdi becomes free other usage */ macro
352 add rdi, dest_buf, #12 // dest_buf
371 st1.2s {v0},[rdi],#8
400 mov rdi, next_full_patt // next_full_patt
411 str eax, [rdi], #4 // *dest_next++ = temp;
415 sub rax, rdi, dest_buf // boundary_tmp - dest_buf
437 str eax, [rdi], #4 // pack w0,w1,w2 into 1 dest_buf word
450 2: str eax, [rdi], #4 // write the final dest_buf word
452 3: sub rax, rdi, dest_buf // boundary_tmp - dest_buf
H A DWKdmCompress_16k.s212 #define rdi x0 /* after some point, x0/rdi becomes free other usage */ macro
354 add rdi, dest_buf, #12 // dest_buf
373 st1.2s {v0},[rdi],#8
402 mov rdi, next_full_patt // next_full_patt
413 str eax, [rdi], #4 // *dest_next++ = temp;
417 sub rax, rdi, dest_buf // boundary_tmp - dest_buf
439 str eax, [rdi], #4 // pack w0,w1,w2 into 1 dest_buf word
452 2: str eax, [rdi], #4 // write the final dest_buf word
454 3: sub rax, rdi, dest_buf // boundary_tmp - dest_buf
/xnu-11215.1.10/bsd/dev/i386/
H A Dsdt_x86.c51 dtrace_probe(sdt->sdp_id, regs->rdi, regs->rsi, regs->rdx, regs->rcx, regs->r8); in sdt_invop()
112 stack = (uintptr_t *)(void*)&saved_state->rdi; in sdt_getarg()
/xnu-11215.1.10/osfmk/kdp/ml/x86_64/
H A Dkdp_machdep.c140 state->rdi = saved_state->rdi; in kdp_getstate()
175 saved_state->rdi = state->rdi; in kdp_setstate()

123