/darwin-on-arm/xnu/osfmk/x86_64/ |
H A D | bzero.s | 67 movq %rsi, %rax /* move pattern (arg2) to rax */ 73 shlq $32,%rax 74 orq %rcx, %rax 84 movq %r8 ,%rax /* returns its first argument */ 93 xorq %rax,%rax
|
H A D | idt64.s | 86 push %rax ;\ 87 leaq func(%rip), %rax ;\ 88 movq %rax, 8(%rsp) ;\ 89 pop %rax 100 push %rax ;\ 102 pop %rax ;\ 186 mov %rax, R64_RAX(%rsp) 197 mov %cr2, %rax 198 mov %rax, R64_CR2(%rsp) 218 pushq %rax [all...] |
H A D | start.s | 221 movq %rax, ___stack_chk_guard(%rip) 230 movq $0xffffff8000000000, %rax /* adjust pointer up high */ 231 or %rax, %rsp /* and stack pointer up there */ 232 or %rcx, %rax 235 callq *%rax 243 xor %rcx, %rax 256 xor %rdx, %rax 314 movq $0xffffff8000000000, %rax 315 orq %rax, %rsp 316 orq %rcx, %rax [all...] |
H A D | mcount.s | 36 pushq %rax // save %eax 62 movq (%rbp),%rax // frame pointer of mcount's caller 69 movq 8(%rax),%rdi // mcount's caller's return address 84 popq %rax
|
H A D | machine_routines_asm.s | 53 orq %rdx,%rax 54 movq %rax, (%rdi) 84 movq %rdi,%rax 85 mulq %rsi /* result is %rdx:%rax */ 86 shrdq $32,%rdx,%rax /* %rdx:%rax >>= 32 */ 168 movq %rdi,%rax /* copy value (in TSC units) to convert */ 171 shlq %cl,%rax /* tscUnits << shift */ 173 shrdq $32,%rdx,%rax /* %rdx:%rax >> [all...] |
H A D | bcopy.s | 94 movq %rdi,%rax 95 subq %rsi,%rax 96 cmpq %rcx,%rax /* overlapping && src < dst? */
|
H A D | cswitch.s | 87 popq %rax /* pop return PC */ 99 movq %rax,KSS_RIP(%rcx) /* save return PC */ 102 movq %rdi,%rax /* return old thread */ 123 movq %rax, %rdi /* load thread argument */ 152 movq %rdi,%rax /* get old thread */ 153 movq %rcx,TH_KERNEL_STACK(%rax) /* save old stack */
|
H A D | pal_routines_asm.s | 36 * "tmpindex" for a scratch counter and %rax 41 mov 0(src,tmpindex,1), %rax /* copy one 64-bit word from source... */ ; \ 42 mov %rax, 0(%rsp,tmpindex,1) /* ... to stack */ ; \ 87 mov 32(%rsi), %rax 93 mov %rax, 32(%rsi) /* save RAX back */ 152 mov %rax, 32(%rsi) /* save RAX back */
|
/darwin-on-arm/xnu/osfmk/i386/ |
H A D | start64.s | 112 mov DS64_DR0(%edx), %rax 113 mov %rax, %dr0 114 mov DS64_DR1(%edx), %rax 115 mov %rax, %dr1 116 mov DS64_DR2(%edx), %rax 117 mov %rax, %dr2 118 mov DS64_DR3(%edx), %rax 119 mov %rax, %dr3 132 mov %cr3, %rax 133 mov %rax, [all...] |
H A D | rtclock_asm_native.h | 95 * %rax returns nanotime 106 orq %rdx,%rax /* %rax := tsc */ ; \ 107 subq RNT_TSC_BASE(%rdi),%rax /* tsc - tsc_base */ ; \ 108 shlq %cl,%rax ; \ 111 shrdq $32,%rdx,%rax /* %rdx:%rax >>= 32 */ ; \ 112 addq RNT_NS_BASE(%rdi),%rax /* add ns_base */ ; \
|
H A D | asm64.h | 48 mov 2f,%rax ;\ 49 jmp *%rax ;\
|
H A D | rtclock_asm.h | 174 * Nanotime returned in %rax. 194 * Uses: %rsi, %rdi, %rdx, %rcx, %rax 197 NANOTIME /* %rax := nanosecs */ ; \ 198 movq %rax,%rsi /* save timestamp */ ; \ 200 subq (old##_TIMER)+TIMER_TSTAMP(%rcx),%rax /* compute elapsed */; \ 201 TIMER_UPDATE(%rcx,%rax,old##_TIMER) /* update timer */ ; \ 206 movq %rsi,%rax /* restore timestamp */ ; \ 207 subq (old##_STATE)+TIMER_TSTAMP(%rdx),%rax /* compute elapsed */; \ 208 TIMER_UPDATE(%rdx,%rax,old##_STATE) /* update timer */ ; \ 215 * Uses: %rsi, %rdi, %rdx, %rcx, %rax [all...] |
H A D | idt64.s | 520 mov %cr3, %rax 521 cmp %rcx, %rax 529 mov %gs:CPU_DR7, %rax /* Is there a debug control register?*/ 530 cmp $0, %rax 532 mov %rax, %dr7 /* Set DR7 */ 539 mov $(KERNEL_UBER_BASE_HI32), %rax 541 shrd $32, %rax, %rsp /* relocate into uber-space */ 556 mov $(KERNEL_UBER_BASE_HI32), %rax 558 shrd $32, %rax, %rsp /* relocate into uber-space */ 655 mov R64_RAX(%rsp), %rax [all...] |
/darwin-on-arm/xnu/libsyscall/wrappers/ |
H A D | __get_cpu_capabilities.s | 38 movq $(_COMM_PAGE_CPU_CAPABILITIES), %rax 39 movl (%rax), %eax
|
/darwin-on-arm/xnu/tools/tests/jitter/ |
H A D | cpu_number.s | 13 movw (%rsp), %rax // get limit 14 and $0xfff, %rax // mask off lower 12 bits to return
|
/darwin-on-arm/xnu/libsyscall/custom/ |
H A D | __ptrace.s | 47 xorq %rax,%rax
|
H A D | __fork.s | 80 movl $ SYSCALL_CONSTRUCT_UNIX(SYS_fork),%eax; // code for fork -> rax 85 movq $-1, %rax 94 xorq %rax, %rax
|
H A D | __gettimeofday.s | 48 * This syscall is special cased: the timeval is returned in rax:rdx. 52 movq %rax, (%rdi)
|
H A D | __vfork.s | 97 movq __current_pid@GOTPCREL(%rip), %rax 98 movl (%rax), %eax 109 movq $ SYSCALL_CONSTRUCT_UNIX(SYS_vfork), %rax // code for vfork -> rax 122 xorq %rax, %rax // zero rax
|
H A D | custom.s | 78 movq %rax,%rdi 82 movq $-1,%rax
|
/darwin-on-arm/xnu/libkern/x86_64/ |
H A D | OSAtomic.s | 45 movzbq %al, %rax #; clear out the high bytes 63 movq %rdi, %rax 65 cmpxchgq %rsi, (%rdx) #; CAS (rax is an implicit operand) 67 movzbq %al, %rax #; clear out the high bytes 86 movq %rdi, %rax;
|
/darwin-on-arm/xnu/libkern/kxld/i386/ |
H A D | WKdmCompress.s | 359 leaq -1136(%rbp), %rax // &tempTagsArray[0] 360 movq %rax, tempTagsArray 361 leaq 1(%rax), next_tag // next_tag always points to the one following the current tag 367 leaq (%rdi,%rax,4), end_of_input // end_of_input = src_buf + num_input_words 391 leaq -6256(%rbp), %rax // &tempLowBitsArray[0] 392 movq %rax, tempLowBitsArray // save for later reference 393 movq %rax, next_low_bits // next_low_bits 416 movsbq (hashTable,%rax),%rax // HASH_TO_DICT_BYTE_OFFSET(input_word) 417 leaq (dictionary, %rax), dict_locatio [all...] |
/darwin-on-arm/xnu/libkern/zlib/intel/ |
H A D | inffastS.s | 715 addq in, %rax // in + (strm->avail_in - 5) 716 movq %rax, last // last = in + (strm->avail_in - 5) 724 addq out, %rax // out + (strm->avail_out - 257); 725 movq %rax, end // end = out + (strm->avail_out - 257); 736 movq 64(state), %rax // state->window 737 movq %rax, window // window = state->window; 752 movq %rax, lmask // lmask = (1U << state->lenbits) - 1 768 salq %cl, %rax // (*in) << bits 769 addq %rax, hold // hold += (*in) << bits 773 movq lmask, %rax // lmas [all...] |
/darwin-on-arm/xnu/osfmk/i386/commpage/ |
H A D | fifo_queues.s | 226 pushq %rax 234 popq %rax 244 * Uses: %rax. 309 * Returns with next element (or 0) in %rax. 335 movq (%rdi),%rax // get ptr to first element in q 336 testq %rax,%rax // q null? 338 movq (%rdx,%rax),%rsi// get ptr to 2nd element in q
|
/darwin-on-arm/xnu/bsd/dev/i386/ |
H A D | systemcalls.c | 290 if (regs->rax == 0x2000800) 304 regs->rax = EPERM; 312 code = regs->rax & SYSCALL_NUMBER_MASK; 347 regs->rax = error; 406 regs->rax = error; 412 regs->rax = uthread->uu_rval[0]; 416 regs->rax = ((u_int)uthread->uu_rval[0]); 424 regs->rax = *((uint64_t *)(&uthread->uu_rval[0])); 439 error, regs->rax, regs->rdx); 492 /* reconstruct code for tracing before blasting rax */ [all...] |