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

12

/macosx-10.5.8/xnu-1228.15.4/libsyscall/mach/x86_64/
H A Dmach_absolute_time.S31 movq $(_COMM_PAGE_NANOTIME), %rax
32 jmp *%rax
/macosx-10.5.8/xnu-1228.15.4/osfmk/i386/commpage/
H A Dlongcopy_sse3x_64.s72 subq %rax,%rdx // get length remaining after dest is aligned
75 movq $_COMM_PAGE_32_TO_64(_COMM_PAGE_MEMCPY),%rax
76 call *%rax
104 movzb (%rsi,%rax),%ecx // touch line 0, 2, 4, or 6 of page
105 movzb 1*64(%rsi,%rax),%ecx // touch line 1, 3, 5, or 7
106 movzb 8*64(%rsi,%rax),%ecx // touch line 8, 10, 12, or 14
107 movzb 9*64(%rsi,%rax),%ecx // etc
109 movzb 16*64(%rsi,%rax),%ecx
110 movzb 17*64(%rsi,%rax),%ecx
111 movzb 24*64(%rsi,%rax),
[all...]
H A Dpthreads.s61 movq %gs:_PTHREAD_TSD_OFFSET64(,%rdi,8), %rax
67 movq %gs:_PTHREAD_TSD_OFFSET64, %rax
H A Dbcopy_sse42_64.s49 movq %rsi,%rax // copy dest ptr
51 movq %rax,%rdi
52 subq %rsi,%rax // (dest - source)
53 cmpq %rdx,%rax // must move in reverse if (dest - source) < length
72 movq %rdi,%rax
73 subq %rsi,%rax // (dest - source)
74 cmpq %rdx,%rax // must move in reverse if (dest - source) < length
106 movq %r11,%rax // get return value (dst ptr) for memcpy/memmove
219 movq (%rsi),%rax
221 movq %rax,(
[all...]
H A Dcommpage_gettimeofday.s101 movq $_COMM_PAGE_32_TO_64(_COMM_PAGE_NANOTIME),%rax
102 call *%rax // get %rax <- nanotime(), preserving %r9, %r10 and %r11
105 subq _GTOD_NS_BASE(%r10),%rax // generate nanoseconds since timestamp
110 movq %rax,%rdx
H A Datomic.s278 // on failure: returns with *value in %rax, ZF clear
282 movq %rdi,%rax // put old value where "cmpxchg" wants it
291 movq %rdi,%rax // put old value where "cmpxchg" wants it
402 movq (%rdi),%rax // %rax == ptr to 1st element in Q
405 movq %rax,(%rbx,%rsi)// link to old list head from new element
422 movq (%rdi),%rax // %rax == ptr to 1st element in Q
425 testq %rax,%rax // lis
[all...]
H A Dcommpage_mach_absolute_time.s153 /* The 64-bit version. We return the 64-bit nanotime in %rax,
170 shlq $32,%rdx // rax := ((edx << 32) | eax), ie 64-bit tsc
171 orq %rdx,%rax
172 subq _NT_TSC_BASE(%rsi), %rax // rax := (tsc - base_tsc)
174 mulq %rcx // rdx:rax := (tsc - base_tsc) * scale
175 shrdq $32,%rdx,%rax // _COMM_PAGE_NT_SHIFT is always 32
176 addq _NT_NS_BASE(%rsi),%rax // (((tsc - base_tsc) * scale) >> 32) + ns_base
H A Dbcopy_sse3x_64.s53 movq %rsi,%rax // copy dest ptr
55 movq %rax,%rdi
56 subq %rsi,%rax // (dest - source)
57 cmpq %rdx,%rax // must move in reverse if (dest - source) < length
76 movq %rdi,%rax
77 subq %rsi,%rax // (dest - source)
78 cmpq %rdx,%rax // must move in reverse if (dest - source) < length
110 movq %r11,%rax // get return value (dst ptr) for memcpy/memmove
160 movl (%r8,%rax,4),%eax // get offset of routine
162 addq %r8,%rax // generat
[all...]
H A Dbzero_sse42_64.s96 movq %r11,%rax // set return value in case this was a call of memset()
H A Dbzero_sse2_64.s94 movq %r11,%rax // set return value in case this was a call of memset()
/macosx-10.5.8/xnu-1228.15.4/osfmk/i386/
H A Dasm64.h47 mov 2f,%rax ;\
48 jmp *%rax ;\
H A Dstart64.s132 mov DS64_DR0(%edx), %rax
133 mov %rax, %dr0
134 mov DS64_DR1(%edx), %rax
135 mov %rax, %dr1
136 mov DS64_DR2(%edx), %rax
137 mov %rax, %dr2
138 mov DS64_DR3(%edx), %rax
139 mov %rax, %dr3
152 mov %cr3, %rax
153 mov %rax,
[all...]
H A Drtclock.h109 * %rax returns nanotime
119 orq %rdx,%rax /* %rax := tsc */ ; \
120 subq RNT_TSC_BASE(%rdi),%rax /* tsc - tsc_base */ ; \
124 shrdq $32,%rdx,%rax /* %rdx:%rax >>= 32 */ ; \
125 addq RNT_NS_BASE(%rdi),%rax /* add ns_base */ ; \
H A Didt64.s527 mov %cr3, %rax
528 cmp %rcx, %rax
536 mov %gs:CPU_DR7, %rax /* Is there a debug control register?*/
537 cmp $0, %rax
539 mov %rax, %dr7 /* Set DR7 */
546 mov $(KERNEL_UBER_BASE_HI32), %rax
548 shrd $32, %rax, %rsp /* relocate into uber-space */
563 mov $(KERNEL_UBER_BASE_HI32), %rax
565 shrd $32, %rax, %rsp /* relocate into uber-space */
662 mov R64_RAX(%rsp), %rax
[all...]
H A Dbsd_i386.c278 iss64->rax = pid;
303 iss64->rax = pid;
415 trapno = regs->rax & SYSCALL_NUMBER_MASK;
418 regs->rax = (unsigned int)kern_invalid(NULL);
427 regs->rax = (*entry->routine.args_0)();
430 regs->rax = (*entry->routine.args64_1)(regs->rdi);
740 call_number = regs->rax & SYSCALL_NUMBER_MASK;
748 i386_exception(EXC_SYSCALL, regs->rax, 1);
754 i386_exception(EXC_SYSCALL, regs->rax, 1);
765 regs->rax
[all...]
H A Dtrap.c146 if (kdebug_enable && ((regs->rax & SYSCALL_CLASS_MASK) == (SYSCALL_CLASS_MACH << SYSCALL_CLASS_SHIFT))) {
149 MACHDBG_CODE(DBG_MACH_EXCP_SC, ((int) (regs->rax & SYSCALL_NUMBER_MASK)))
153 regs->rax = ret;
847 ss64p->rax, ss64p->rbx, ss64p->rcx, ss64p->rdx,
913 ss64p->rax, ss64p->rbx, ss64p->rcx, ss64p->rdx,
H A Dpcb.c798 saved_state->rax = ts->rax;
858 ts->rax = saved_state->rax;
1061 saved_state->rax = state->rax;
/macosx-10.5.8/xnu-1228.15.4/libsyscall/custom/
H A D__ptrace.s56 xorq %rax,%rax
57 REG_TO_EXTERN(%rax,_errno)
H A D__vfork.s146 movq __current_pid@GOTPCREL(%rip), %rax
147 movl (%rax), %eax
158 movq $ SYSCALL_CONSTRUCT_UNIX(SYS_vfork), %rax // code for vfork -> rax
170 xorq %rax, %rax // zero rax
H A D__fork.s194 movl $ SYSCALL_CONSTRUCT_UNIX(SYS_fork),%eax; // code for fork -> rax
200 movq $-1, %rax
229 xorq %rax, %rax
230 REG_TO_EXTERN(%rax, __current_pid)
233 xorq %rax,%rax // zero rax
H A Dcustom.s90 REG_TO_EXTERN(%rax, _errno)
96 movq %rax,%rdi
100 movq $-1,%rax
H A D__gettimeofday.s62 * This syscall is special cased: the timeval is returned in rax:rdx.
66 movq %rax, (%rdi)
/macosx-10.5.8/xnu-1228.15.4/bsd/dev/i386/
H A Dsystemcalls.c260 if (regs->rax == 0x2000800)
274 regs->rax = EPERM;
282 code = regs->rax & SYSCALL_NUMBER_MASK;
313 regs->rax = error;
362 regs->rax = error;
368 regs->rax = uthread->uu_rval[0];
372 regs->rax = ((u_int)uthread->uu_rval[0]);
379 regs->rax = *((uint64_t *)(&uthread->uu_rval[0]));
439 /* reconstruct code for tracing before blasting rax */
440 code = regs->rax
[all...]
/macosx-10.5.8/xnu-1228.15.4/osfmk/mach/i386/
H A D_types.h71 uint64_t rax; member in struct:x86_thread_state64
H A Dthread_status.h453 uint64_t rax; member in struct:x86_saved_state64

Completed in 163 milliseconds

12