| /xnu-12377.41.6/osfmk/x86_64/ |
| H A D | idt64.s | 119 push %rax ;\ 121 pop %rax ;\ 170 pushq %rax 187 leaq EXT(idt64_hndl_table0)(%rip), %rax 188 mov 16(%rax), %rax /* Offset of per-CPU shadow */ 222 leaq abort_rip_cacheline_read(%rip), %rax 223 movq %rax, 8+ISF64_RIP(%rsp) 224 popq %rax 239 push %rax 256 pop %rax [all …]
|
| H A D | WKdmDecompress_new.s | 95 movq $0, %rax 97 movq $0, 0(%rsi, %rax) 98 movq $0, 8(%rsi, %rax) 99 movq $0, 16(%rsi, %rax) 100 movq $0, 24(%rsi, %rax) 101 movq $0, 32(%rsi, %rax) 102 movq $0, 40(%rsi, %rax) 103 movq $0, 48(%rsi, %rax) 104 movq $0, 56(%rsi, %rax) 105 addq $64, %rax [all …]
|
| H A D | WKdmCompress_new.s | 244 leaq 2048(%rdx), %rax // &tempLowBitsArray[0] 245 movq %rax, tempLowBitsArray // save for later reference 246 movq %rax, next_low_bits // next_low_bits 272 movsbq (hashTable,%rax),%rax // HASH_TO_DICT_BYTE_OFFSET(input_word) 273 …leaq (dictionary, %rax), dict_location // ((char*) dictionary) + HASH_TO_DICT_BYTE_OFFSET(input_w… 296 movq next_full_patt, %rax // next_full_patt 297 subq dest_buf, %rax // next_full_patt - dest_buf 298 sarq $2, %rax // offset in 4-bytes 312 movq 8(%rcx), %rax // w3 314 shlq $4, %rax [all …]
|
| H A D | lz4_decode_x86_64.s | 184 movzb (src),%rax // read command byte LLLLMMMM 186 mov %rax,n_literals 188 mov %rax,n_matches 206 movzb (src),%rax 208 add %rax,n_literals 209 cmp $255,%rax 260 lea L_match_permtable(%rip),%rax 263 vmovdqa (%rax,match_distance),%xmm2 // pattern address is match_permtable + 32 * match_distance 268 movdqa (%rax,match_distance),%xmm2 // pattern address is match_permtable + 32 * match_distance 281 mov (src),%rax [all …]
|
| H A D | start.s | 213 rdrand %rax /* RAX := 64 bits of DRBG entropy */ 218 movq %rax, ___stack_chk_guard(%rip) 227 movq $(KERNEL_BASE), %rax /* adjust pointer up high */ 228 or %rax, %rsp /* and stack pointer up there */ 229 or %rcx, %rax 232 callq *%rax 240 xor %rcx, %rax 253 xor %rdx, %rax 311 movq $(KERNEL_BASE), %rax 312 orq %rax, %rsp [all …]
|
| H A D | bzero.s | 74 movq %rsi, %rax /* move pattern (arg2) to rax */ 79 movq %r8 ,%rax /* returns its first argument */ 88 movq %rsi, %rax /* move pattern (arg2) to rax */ 90 shlq $32,%rax 91 orq %rcx, %rax 101 movq %r8 ,%rax /* returns its first argument */
|
| H A D | machine_routines_asm.s | 51 orq %rdx,%rax 83 movq %rdi,%rax 85 shrdq $32,%rdx,%rax /* %rdx:%rax >>= 32 */ 88 mov %rdi,%rax 170 movq %rdi,%rax /* copy value (in TSC units) to convert */ 173 shlq %cl,%rax /* tscUnits << shift */ 175 shrdq $32,%rdx,%rax /* %rdx:%rax >>= 32 */
|
| H A D | bcopy.s | 67 movq %rdi, %rax /* return destination */ 97 movq %rdi,%rax 98 subq %rsi,%rax 99 cmpq %rcx,%rax /* overlapping && src < dst? */ 100 movq %rdi,%rax /* restore the return value */
|
| 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 | cswitch.s | 105 popq %rax /* pop return PC */ 117 movq %rax,KSS_RIP(%rcx) /* save return PC */ 120 movq %rdi,%rax /* return old thread */ 149 movq %rax, %rdi /* this is the old thread from Switch_context */ 176 movq %rdi,%rax /* get old thread */ 177 movq %rcx,TH_KERNEL_STACK(%rax) /* save old stack */
|
| H A D | pal_routines_asm.s | 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-12377.41.6/osfmk/arm64/ |
| H A D | WKdmCompress_16k.s | 206 #define rax x13 macro 317 ldrb wdict_location, [hashTable, rax] // HASH_TO_DICT_BYTE_OFFSET(input_word) 347 sub rax, next_full_patt, dest_buf // next_full_patt - dest_buf 380 sub rax, next_qp, tempQPosArray // eax = num_bytes_to_pack = next_qp - (char *) tempQPosArray; 383 add rcx, tempQPosArray, rax, lsl #3 // endQPosArray = tempQPosArray + 2*num_source_words 384 lsl rax, rax, #2 385 subs byte_count, byte_count, rax 390 sub rax, rcx, next_qp 410 ldr rax, [rdx], #8 // src_next[1]:src_next[0] 411 orr rax, rax, rax, lsr #28 // eax = src_next[0] | (src_next[1] << 4) [all …]
|
| H A D | WKdmCompress_4k.s | 204 #define rax x13 macro 315 ldrb wdict_location, [hashTable, rax] // HASH_TO_DICT_BYTE_OFFSET(input_word) 345 sub rax, next_full_patt, dest_buf // next_full_patt - dest_buf 378 sub rax, next_qp, tempQPosArray // eax = num_bytes_to_pack = next_qp - (char *) tempQPosArray; 381 add rcx, tempQPosArray, rax, lsl #3 // endQPosArray = tempQPosArray + 2*num_source_words 382 lsl rax, rax, #2 383 subs byte_count, byte_count, rax 388 sub rax, rcx, next_qp 408 ldr rax, [rdx], #8 // src_next[1]:src_next[0] 409 orr rax, rax, rax, lsr #28 // eax = src_next[0] | (src_next[1] << 4) [all …]
|
| H A D | WKdmDecompress_4k.s | 110 #define rax x13 macro 139 sub rax, sp, #96 141 st1.4s {v0,v1,v2},[rax],#48 142 st1.4s {v3,v4,v5},[rax],#48 155 mov rax, dest_buf 158 …dc zva, rax // zero 64 bytes. since dest_buf is a page, it will be… 159 add rax, rax, #64 160 dc zva, rax 161 add rax, rax, #64 162 dc zva, rax [all …]
|
| H A D | WKdmDecompress_16k.s | 110 #define rax x13 macro 139 sub rax, sp, #96 141 st1.4s {v0,v1,v2},[rax],#48 142 st1.4s {v3,v4,v5},[rax],#48 155 mov rax, dest_buf 158 …dc zva, rax // zero 64 bytes. since dest_buf is a page, it will be… 159 add rax, rax, #64 160 dc zva, rax 161 add rax, rax, #64 162 dc zva, rax [all …]
|
| /xnu-12377.41.6/osfmk/i386/ |
| H A D | rtclock_asm_native.h | 74 orq %rdx,%rax /* %rax := tsc */ ; \ 75 subq RNT_TSC_BASE(%rdi),%rax /* tsc - tsc_base */ ; \ 76 shlq %cl,%rax ; \ 79 shrdq $32,%rdx,%rax /* %rdx:%rax >>= 32 */ ; \ 80 addq RNT_NS_BASE(%rdi),%rax /* add ns_base */ ; \ 91 orq %rdx,%rax /* %rax := tsc */ ; \ 92 subq RNT_TSC_BASE(%rdi),%rax /* tsc - tsc_base */ ; \ 93 shlq %cl,%rax ; \ 96 shrdq $32,%rdx,%rax /* %rdx:%rax >>= 32 */ ; \ 97 addq RNT_NS_BASE(%rdi),%rax /* add ns_base */ ; \
|
| H A D | bsd_i386.c | 267 iss64->rax = pid; in thread_set_child() 395 trapno = (int)(regs->rax & SYSCALL_NUMBER_MASK); in machdep_syscall64() 401 regs->rax = (unsigned int)kern_invalid(NULL); in machdep_syscall64() 413 regs->rax = (*entry->routine.args_0)(); in machdep_syscall64() 416 regs->rax = (*entry->routine.args64_1)(regs->rdi); in machdep_syscall64() 419 regs->rax = (*entry->routine.args64_2)(regs->rdi, regs->rsi); in machdep_syscall64() 423 regs->rax = (*entry->routine.args64_3)(regs->rdi, regs->rsi, regs->rdx); in machdep_syscall64() 430 regs->rax = (uint64_t)error; in machdep_syscall64() 433 regs->rax = rval; in machdep_syscall64() 442 DEBUG_KPRINT_SYSCALL_MDEP("machdep_syscall: retval=%llu\n", regs->rax); in machdep_syscall64() [all …]
|
| H A D | x86_hypercall.h | 64 uint64_t rax; member 93 #define HVG_HCALL_RETURN(rax) {\ argument 104 return (hvg_hcall_return_t)rax;\ 116 : "=a" (output->rax), /* %0: output[0] */ in hvg_hypercall6() 131 HVG_HCALL_RETURN(output->rax); in hvg_hypercall6()
|
| /xnu-12377.41.6/osfmk/i386/commpage/ |
| H A D | fifo_queues.s | 230 pushq %rax 238 popq %rax 293 movq 8(%rdi),%rax // get ptr to last element in q 294 testq %rax,%rax // q null? 299 movq %rsi,(%rdx,%rax) // point to new element from last 339 movq (%rdi),%rax // get ptr to first element in q 340 testq %rax,%rax // q null? 342 movq (%rdx,%rax),%rsi// get ptr to 2nd element in q
|
| /xnu-12377.41.6/tests/ |
| H A D | ldt_code32.s | 39 movq %rsp, %rax 41 pushq %rax /* Save 64-bit stack pointer */ 42 leaq 1f(%rip), %rax 47 orq %rdx, %rax 64 pushq %rax /* Push the return offset + segment onto the stack */ 205 movabs $0xdeadbeeffeedface, %rax 206 jmpq *%rax
|
| /xnu-12377.41.6/bsd/dev/i386/ |
| H A D | systemcalls.c | 290 if (regs->rax == 0x2000800) { in unix_syscall64() 302 regs->rax = EPERM; in unix_syscall64() 309 code = regs->rax & SYSCALL_NUMBER_MASK; in unix_syscall64() 353 regs->rax = error; in unix_syscall64() 413 regs->rax = error; in unix_syscall64() 418 regs->rax = uthread->uu_rval[0]; in unix_syscall64() 422 regs->rax = ((u_int)uthread->uu_rval[0]); in unix_syscall64() 430 regs->rax = *((uint64_t *)(&uthread->uu_rval[0])); in unix_syscall64() 445 error, regs->rax, regs->rdx); in unix_syscall64() 515 regs->rax = error; in unix_syscall_return() [all …]
|
| H A D | cpu_memcmp_mask.s | 83 xorq %rax, %rax 138 xorq %rax, %rax 201 xorq %rax, %rax 272 xorq %rax, %rax 351 xorq %rax, %rax
|
| /xnu-12377.41.6/san/memory/ |
| H A D | kasan-test-x86_64.s | 70 movq (%rsp), %rax 71 movq %rax, JB_RIP(%rdi) 73 leaq 8(%rsp), %rax 74 movq %rax, JB_RSP(%rdi)
|
| /xnu-12377.41.6/libsyscall/custom/ |
| 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 | __fork.s | 84 movq %rax, %rdi 86 movq $-1, %rax 95 xorq %rax, %rax
|