| /xnu-8020.140.41/tests/ |
| H A D | hvtest_x86_asm.s | 23 pushq %rax 45 movq $0x1010, %rax 47 cmpq %rbx, %rax 53 movq $0x2020, %rax 55 cmpq %rbx, %rax 61 movq $0x3030, %rax 63 cmpq %rbx, %rax 69 movq $0x4040, %rax 71 cmpq %rbx, %rax 81 pushq %rax [all …]
|
| 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-8020.140.41/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 */ 90 movq %rdi,%rax 91 subq %rsi,%rax 92 cmpq %rcx,%rax /* overlapping && src < dst? */
|
| 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-8020.140.41/osfmk/arm64/ |
| H A D | WKdmCompress_4k.s | 200 #define rax x13 macro 310 ldrb wdict_location, [hashTable, rax] // HASH_TO_DICT_BYTE_OFFSET(input_word) 340 sub rax, next_full_patt, dest_buf // next_full_patt - dest_buf 373 sub rax, next_qp, tempQPosArray // eax = num_bytes_to_pack = next_qp - (char *) tempQPosArray; 376 add rcx, tempQPosArray, rax, lsl #3 // endQPosArray = tempQPosArray + 2*num_source_words 377 lsl rax, rax, #2 378 subs byte_count, byte_count, rax 383 sub rax, rcx, next_qp 403 ldr rax, [rdx], #8 // src_next[1]:src_next[0] 404 orr rax, rax, rax, lsr #28 // eax = src_next[0] | (src_next[1] << 4) [all …]
|
| H A D | WKdmCompress_16k.s | 202 #define rax x13 macro 312 ldrb wdict_location, [hashTable, rax] // HASH_TO_DICT_BYTE_OFFSET(input_word) 342 sub rax, next_full_patt, dest_buf // next_full_patt - dest_buf 375 sub rax, next_qp, tempQPosArray // eax = num_bytes_to_pack = next_qp - (char *) tempQPosArray; 378 add rcx, tempQPosArray, rax, lsl #3 // endQPosArray = tempQPosArray + 2*num_source_words 379 lsl rax, rax, #2 380 subs byte_count, byte_count, rax 385 sub rax, rcx, next_qp 405 ldr rax, [rdx], #8 // src_next[1]:src_next[0] 406 orr rax, rax, rax, lsr #28 // eax = src_next[0] | (src_next[1] << 4) [all …]
|
| H A D | WKdmDecompress_16k.s | 106 #define rax x13 macro 134 sub rax, sp, #96 136 st1.4s {v0,v1,v2},[rax],#48 137 st1.4s {v3,v4,v5},[rax],#48 150 mov rax, dest_buf 153 …dc zva, rax // zero 64 bytes. since dest_buf is a page, it will be… 154 add rax, rax, #64 155 dc zva, rax 156 add rax, rax, #64 157 dc zva, rax [all …]
|
| H A D | WKdmDecompress_4k.s | 106 #define rax x13 macro 134 sub rax, sp, #96 136 st1.4s {v0,v1,v2},[rax],#48 137 st1.4s {v3,v4,v5},[rax],#48 150 mov rax, dest_buf 153 …dc zva, rax // zero 64 bytes. since dest_buf is a page, it will be… 154 add rax, rax, #64 155 dc zva, rax 156 add rax, rax, #64 157 dc zva, rax [all …]
|
| /xnu-8020.140.41/osfmk/i386/ |
| H A D | rtclock_asm.h | 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 */ ; \ 104 movq %rax,%gs:CPU_INT_EVENT_TIME /* save in cpu data */ ; \ 105 movq %rax,%rsi /* save timestamp */ ; \ 108 subq TIMER_TSTAMP(%rcx),%rax /* compute elapsed */ ; \ 109 TIMER_UPDATE(%rcx,%rax,0) /* update timer */ ; \ [all …]
|
| 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 | x86_hypercall.h | 63 uint64_t rax; member 91 #define HVG_HCALL_RETURN(rax) {\ argument 102 return (hvg_hcall_return_t)rax;\ 114 : "=a" (output->rax), /* %0: output[0] */ in hvg_hypercall6() 129 HVG_HCALL_RETURN(output->rax); in hvg_hypercall6()
|
| H A D | bsd_i386.c | 268 iss64->rax = pid; in thread_set_child() 396 trapno = (int)(regs->rax & SYSCALL_NUMBER_MASK); in machdep_syscall64() 402 regs->rax = (unsigned int)kern_invalid(NULL); in machdep_syscall64() 414 regs->rax = (*entry->routine.args_0)(); in machdep_syscall64() 417 regs->rax = (*entry->routine.args64_1)(regs->rdi); in machdep_syscall64() 420 regs->rax = (*entry->routine.args64_2)(regs->rdi, regs->rsi); in machdep_syscall64() 424 regs->rax = (*entry->routine.args64_3)(regs->rdi, regs->rsi, regs->rdx); in machdep_syscall64() 431 regs->rax = (uint64_t)error; in machdep_syscall64() 434 regs->rax = rval; in machdep_syscall64() 443 DEBUG_KPRINT_SYSCALL_MDEP("machdep_syscall: retval=%llu\n", regs->rax); in machdep_syscall64() [all …]
|
| /xnu-8020.140.41/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-8020.140.41/bsd/dev/i386/ |
| H A D | systemcalls.c | 294 if (regs->rax == 0x2000800) { in unix_syscall64() 306 regs->rax = EPERM; in unix_syscall64() 313 code = regs->rax & SYSCALL_NUMBER_MASK; in unix_syscall64() 357 regs->rax = error; in unix_syscall64() 421 regs->rax = error; in unix_syscall64() 426 regs->rax = uthread->uu_rval[0]; in unix_syscall64() 430 regs->rax = ((u_int)uthread->uu_rval[0]); in unix_syscall64() 438 regs->rax = *((uint64_t *)(&uthread->uu_rval[0])); in unix_syscall64() 453 error, regs->rax, regs->rdx); in unix_syscall64() 523 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-8020.140.41/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)
|