diff options
author | jkim <jkim@FreeBSD.org> | 2012-06-13 22:53:56 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2012-06-13 22:53:56 +0000 |
commit | d0039ee2cf0f8e40d536d4f57fad8d221e152aa8 (patch) | |
tree | f90f07af9dcf9fce8852f9747a65291bae3c4a75 /sys/amd64/amd64/cpu_switch.S | |
parent | 0ca632f7e9e457afd6f19baf33eb7cb22413134d (diff) | |
download | FreeBSD-src-d0039ee2cf0f8e40d536d4f57fad8d221e152aa8.zip FreeBSD-src-d0039ee2cf0f8e40d536d4f57fad8d221e152aa8.tar.gz |
- Remove unused code for CR3 and CR4.
- Fix few style(9) nits while I am here.
Diffstat (limited to 'sys/amd64/amd64/cpu_switch.S')
-rw-r--r-- | sys/amd64/amd64/cpu_switch.S | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/amd64/amd64/cpu_switch.S b/sys/amd64/amd64/cpu_switch.S index 12542d7..dea3cbe 100644 --- a/sys/amd64/amd64/cpu_switch.S +++ b/sys/amd64/amd64/cpu_switch.S @@ -394,12 +394,13 @@ ENTRY(savectx) END(savectx) /* - * resumectx(pcb, cr3) + * resumectx(pcb) * Resuming processor state from pcb. */ ENTRY(resumectx) /* Switch to KPML4phys. */ - movq %rsi,%cr3 + movq KPML4phys,%rax + movq %rax,%cr3 /* Force kernel segment registers. */ movl $KDSEL,%eax |