Lines Matching refs:rax
520 mov %cr3, %rax
521 cmp %rcx, %rax
529 mov %gs:CPU_DR7, %rax /* Is there a debug control register?*/
530 cmp $0, %rax
532 mov %rax, %dr7 /* Set DR7 */
539 mov $(KERNEL_UBER_BASE_HI32), %rax
541 shrd $32, %rax, %rsp /* relocate into uber-space */
556 mov $(KERNEL_UBER_BASE_HI32), %rax
558 shrd $32, %rax, %rsp /* relocate into uber-space */
655 mov R64_RAX(%rsp), %rax
691 * These are entered via a syscall interrupt. The system call number in %rax
699 push %rax /* save system call number */
708 push %rax /* save system call number */
717 push %rax /* save system call number */
739 mov %rax, ISF64_ERR(%rsp) /* err/rax - syscall code */
781 push %rax /* err/eax - syscall code */
846 mov %cr2, %rax
885 mov %cr3, %rax
887 cmp %rax, %rcx /* is the task's cr3 loaded? */
893 cmp %rax, %rcx
957 mov %rax, R64_RAX(%rsp)
968 mov %cr2, %rax
969 mov %rax, R64_CR2(%rsp)
1138 movq %rax, %gs:CPU_UBER_TMP /* save %rax */
1139 movq %gs:CPU_UBER_ISF, %rax /* PCB stack addr */
1140 subq %rsp, %rax
1141 cmpq $(PAGE_SIZE), %rax /* current stack in PCB? */
1142 movq %gs:CPU_UBER_TMP, %rax /* restore %rax */
1149 movq %gs:CPU_KERNEL_STACK, %rax /* note: %rax restored below */
1150 xchgq %rax, %rsp
1151 pushq ISF64_SS(%rax)
1152 pushq ISF64_RSP(%rax)
1153 pushq ISF64_RFLAGS(%rax)
1154 pushq ISF64_CS(%rax)
1155 pushq ISF64_RIP(%rax)
1156 pushq ISF64_ERR(%rax)
1157 pushq ISF64_TRAPFN(%rax)
1158 pushq ISF64_TRAPNO(%rax)
1159 movq %gs:CPU_UBER_TMP, %rax /* restore %rax */
1184 mov %rax, ISF64_RIP(%rsp) /* save rax (we don`t need saved rip) */
1185 mov ISF64_TRAPNO(%rsp), %rax
1186 mov %rax, ISF64_SS(%rsp) /* put in user trap number */
1187 mov ISF64_ERR(%rsp), %rax
1188 mov %rax, 8+ISF64_SS(%rsp) /* put in user errcode */
1189 mov ISF64_RIP(%rsp), %rax /* restore rax */
1196 mov %rax, ISF64_RIP(%rsp) /* save rax (we don`t need saved rip) */
1197 mov ISF64_TRAPNO(%rsp), %rax
1198 mov %rax, ISF64_SS(%rsp) /* put in user trap number */
1199 mov ISF64_ERR(%rsp), %rax
1200 mov %rax, 8+ISF64_SS(%rsp) /* put in user errcode */
1201 mov ISF64_RIP(%rsp), %rax /* restore rax */
1212 mov ISF64_TRAPNO(%rsp), %rax
1215 mov %rax,ISC32_TRAPNO(%rsp)