Searched refs:rax (Results 1 - 25 of 47) sorted by relevance

12

/xnu-2422.115.4/osfmk/i386/
H A Drtclock_asm_native.h64 * %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 Drtclock_asm.h46 * 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 Dbsd_i386.c219 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 Dbzero.s67 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 DWKdmDecompress_new.s106 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 Didt64.s87 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 DWKdmCompress_new.s218 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 Dstart.s220 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 Dmcount.s36 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 Dmachine_routines_asm.s53 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 Dbcopy.s94 movq %rdi,%rax
95 subq %rsi,%rax
96 cmpq %rcx,%rax /* overlapping && src < dst? */
H A Dcswitch.s87 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 Dpal_routines_asm.s36 * "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.s36 movq $(_COMM_PAGE_CPU_CAPABILITIES64), %rax
37 movq (%rax), %rax
H A Dmach_absolute_time.s102 * 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.s99 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.s80 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.s47 xorq %rax,%rax
H A D__vfork.s97 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.s48 * This syscall is special cased: the timeval is returned in rax:rdx.
52 movq %rax, (%rdi)
H A Dcustom.s92 movq %rax, %rdi
103 movq %rax, %rdi
/xnu-2422.115.4/libkern/x86_64/
H A DOSAtomic.s45 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 Dcpu_number.s14 and $0xfff, %rax // mask off lower 12 bits to return
/xnu-2422.115.4/bsd/dev/i386/
H A Dsystemcalls.c283 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 Dfifo_queues.s226 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

Completed in 46 milliseconds

12