diff options
author | kib <kib@FreeBSD.org> | 2012-07-06 20:11:58 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2012-07-06 20:11:58 +0000 |
commit | 8cabc35aa06b9da2213f2bd6bb40d47cab1107c8 (patch) | |
tree | ba7f476784e392910721cbd0604584700119b7cd /sys/amd64 | |
parent | b4995ae7cbe2904f2627a580e63b1528e34bdfe8 (diff) | |
download | FreeBSD-src-8cabc35aa06b9da2213f2bd6bb40d47cab1107c8.zip FreeBSD-src-8cabc35aa06b9da2213f2bd6bb40d47cab1107c8.tar.gz |
Use assembler mnemonic instead of manually assembling, contination for r238142.
Reviewed by: jhb
MFC after: 1 month
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/amd64/cpu_switch.S | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/amd64/amd64/cpu_switch.S b/sys/amd64/amd64/cpu_switch.S index dea3cbe..1254f3f 100644 --- a/sys/amd64/amd64/cpu_switch.S +++ b/sys/amd64/amd64/cpu_switch.S @@ -122,8 +122,7 @@ done_store_dr: 1: movq %rdx,%rcx movl xsave_mask,%eax movl xsave_mask+4,%edx -/* xsave (%r8) */ - .byte 0x41,0x0f,0xae,0x20 + xsave (%r8) movq %rcx,%rdx 2: smsw %ax orb $CR0_TS,%al @@ -499,10 +498,8 @@ ENTRY(resumectx) movq %rax,%rdx shrq $32,%rdx movl $XCR0,%ecx -/* xsetbv */ - .byte 0x0f, 0x01, 0xd1 -/* xrstor (%rbx) */ - .byte 0x0f, 0xae, 0x2b + xsetbv + xrstor (%rbx) jmp 2f 1: fxrstor (%rbx) |