/macosx-10.5.8/xnu-1228.15.4/libsyscall/mach/x86_64/ |
H A D | mach_absolute_time.S | 31 movq $(_COMM_PAGE_NANOTIME), %rax 32 jmp *%rax
|
/macosx-10.5.8/xnu-1228.15.4/osfmk/i386/commpage/ |
H A D | longcopy_sse3x_64.s | 72 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 D | pthreads.s | 61 movq %gs:_PTHREAD_TSD_OFFSET64(,%rdi,8), %rax 67 movq %gs:_PTHREAD_TSD_OFFSET64, %rax
|
H A D | bcopy_sse42_64.s | 49 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 D | commpage_gettimeofday.s | 101 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 D | atomic.s | 278 // 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 D | commpage_mach_absolute_time.s | 153 /* 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 D | bcopy_sse3x_64.s | 53 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 D | bzero_sse42_64.s | 96 movq %r11,%rax // set return value in case this was a call of memset()
|
H A D | bzero_sse2_64.s | 94 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 D | asm64.h | 47 mov 2f,%rax ;\ 48 jmp *%rax ;\
|
H A D | start64.s | 132 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 D | rtclock.h | 109 * %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 D | idt64.s | 527 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 D | bsd_i386.c | 278 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 D | trap.c | 146 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 D | pcb.c | 798 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.s | 56 xorq %rax,%rax 57 REG_TO_EXTERN(%rax,_errno)
|
H A D | __vfork.s | 146 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.s | 194 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 D | custom.s | 90 REG_TO_EXTERN(%rax, _errno) 96 movq %rax,%rdi 100 movq $-1,%rax
|
H A D | __gettimeofday.s | 62 * 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 D | systemcalls.c | 260 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.h | 71 uint64_t rax; member in struct:x86_thread_state64
|
H A D | thread_status.h | 453 uint64_t rax; member in struct:x86_saved_state64
|