/xnu-2422.115.4/osfmk/i386/ |
H A D | rtclock_asm_native.h | 64 * %rax returns nanotime 75 orq %rdx,%rax /* %rax := tsc */ ; \ 76 subq RNT_TSC_BASE(%rdi),%rax /* tsc - tsc_base */ ; \ 77 shlq %cl,%rax ; \ 80 shrdq $32,%rdx,%rax /* %rdx:%rax >>= 32 */ ; \ 81 addq RNT_NS_BASE(%rdi),%rax /* add ns_base */ ; \
|
H A D | rtclock_asm.h | 46 * Nanotime returned in %rax. 66 * Uses: %rsi, %rdi, %rdx, %rcx, %rax 69 NANOTIME /* %rax := nanosecs */ ; \ 70 movq %rax,%rsi /* save timestamp */ ; \ 72 subq (old##_TIMER)+TIMER_TSTAMP(%rcx),%rax /* compute elapsed */; \ 73 TIMER_UPDATE(%rcx,%rax,old##_TIMER) /* update timer */ ; \ 78 movq %rsi,%rax /* restore timestamp */ ; \ 79 subq (old##_STATE)+TIMER_TSTAMP(%rdx),%rax /* compute elapsed */; \ 80 TIMER_UPDATE(%rdx,%rax,old##_STATE) /* update timer */ ; \ 87 * Uses: %rsi, %rdi, %rdx, %rcx, %rax [all...] |
H A D | bsd_i386.c | 219 iss64->rax = pid; 337 trapno = (int)(regs->rax & SYSCALL_NUMBER_MASK); 343 regs->rax = (unsigned int)kern_invalid(NULL); 352 regs->rax = (*entry->routine.args_0)(); 355 regs->rax = (*entry->routine.args64_1)(regs->rdi); 363 DEBUG_KPRINT_SYSCALL_MDEP("machdep_syscall: retval=%llu\n", regs->rax); 493 call_number = (int)(regs->rax & SYSCALL_NUMBER_MASK); 504 i386_exception(EXC_SYSCALL, regs->rax, 1); 510 i386_exception(EXC_SYSCALL, regs->rax, 1); 521 regs->rax [all...] |
/xnu-2422.115.4/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 | WKdmDecompress_new.s | 106 mov $0x100000001, %rax 107 mov %rax, (%rsp) 108 mov %rax, 8(%rsp) 109 mov %rax, 16(%rsp) 110 mov %rax, 24(%rsp) 111 mov %rax, 32(%rsp) 112 mov %rax, 40(%rsp) 113 mov %rax, 48(%rsp) 114 mov %rax, 56(%rsp) 120 leaq 12(%rdi), %rax // TAGS_AREA_STAR [all...] |
H A D | idt64.s | 87 push %rax ;\ 88 leaq func(%rip), %rax ;\ 89 movq %rax, 8(%rsp) ;\ 90 pop %rax 101 push %rax ;\ 103 pop %rax ;\ 186 mov %rax, R64_RAX(%r15) 202 mov %cr2, %rax 203 mov %rax, R64_CR2(%r15) 215 pushq %rax [all...] |
H A D | WKdmCompress_new.s | 218 leaq 2048(%rdx), %rax // &tempLowBitsArray[0] 219 movq %rax, tempLowBitsArray // save for later reference 220 movq %rax, next_low_bits // next_low_bits 239 movsbq (hashTable,%rax),%rax // HASH_TO_DICT_BYTE_OFFSET(input_word) 240 leaq (dictionary, %rax), dict_location // ((char*) dictionary) + HASH_TO_DICT_BYTE_OFFSET(input_word)); 262 movq next_full_patt, %rax // next_full_patt 263 subq dest_buf, %rax // next_full_patt - dest_buf 264 sarq $2, %rax // offset in 4-bytes 278 movq 8(%rcx), %rax // w [all...] |
H A D | start.s | 220 movq %rax, ___stack_chk_guard(%rip) 229 movq $0xffffff8000000000, %rax /* adjust pointer up high */ 230 or %rax, %rsp /* and stack pointer up there */ 231 or %rcx, %rax 234 callq *%rax 242 xor %rcx, %rax 255 xor %rdx, %rax 313 movq $0xffffff8000000000, %rax 314 orq %rax, %rsp 315 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 */
|
/xnu-2422.115.4/libsyscall/wrappers/ |
H A D | __get_cpu_capabilities.s | 36 movq $(_COMM_PAGE_CPU_CAPABILITIES64), %rax 37 movq (%rax), %rax
|
H A D | mach_absolute_time.s | 102 * 64-bit version _mach_absolute_time. We return the 64-bit nanotime in %rax. 130 shlq $32,%rdx // rax := ((edx << 32) | eax), ie 64-bit tsc 131 orq %rdx,%rax 141 subq _NT_TSC_BASE(%rsi), %rax // rax := (tsc - base_tsc) 142 shlq %cl,%rax // rax := (tsc - base_tsc) << NT_SHIFT 144 mulq %rcx // rdx:rax := ((tsc - base_tsc)<<shift) * scale 145 shrdq $32,%rdx,%rax // divide by 2**32 146 addq _NT_NS_BASE(%rsi),%rax // (((ts [all...] |
H A D | __commpage_gettimeofday.s | 99 call _mach_absolute_time // get %rax <- nanotime() 102 subq _GTOD_NS_BASE(%r13),%rax // generate nanoseconds since timestamp 107 movq %rax,%rdx
|
/xnu-2422.115.4/libsyscall/custom/ |
H A D | __fork.s | 80 movl $ SYSCALL_CONSTRUCT_UNIX(SYS_fork),%eax; // code for fork -> rax 84 movq %rax, %rdi 86 movq $-1, %rax 95 xorq %rax, %rax
|
H A D | __ptrace.s | 47 xorq %rax,%rax
|
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 116 movq %rax, %rdi 122 xorq %rax, %rax // zero 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 | custom.s | 92 movq %rax, %rdi 103 movq %rax, %rdi
|
/xnu-2422.115.4/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;
|
/xnu-2422.115.4/tools/tests/jitter/ |
H A D | cpu_number.s | 14 and $0xfff, %rax // mask off lower 12 bits to return
|
/xnu-2422.115.4/bsd/dev/i386/ |
H A D | systemcalls.c | 283 if (regs->rax == 0x2000800) 297 regs->rax = EPERM; 305 code = regs->rax & SYSCALL_NUMBER_MASK; 341 regs->rax = error; 392 regs->rax = error; 398 regs->rax = uthread->uu_rval[0]; 402 regs->rax = ((u_int)uthread->uu_rval[0]); 410 regs->rax = *((uint64_t *)(&uthread->uu_rval[0])); 425 error, regs->rax, regs->rdx); 478 /* reconstruct code for tracing before blasting rax */ [all...] |
/xnu-2422.115.4/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
|