svn commit: r238179 - head/sys/amd64/amd64
Konstantin Belousov
kib at FreeBSD.org
Fri Jul 6 20:11:59 UTC 2012
Author: kib
Date: Fri Jul 6 20:11:58 2012
New Revision: 238179
URL: http://svn.freebsd.org/changeset/base/238179
Log:
Use assembler mnemonic instead of manually assembling, contination for r238142.
Reviewed by: jhb
MFC after: 1 month
Modified:
head/sys/amd64/amd64/cpu_switch.S
Modified: head/sys/amd64/amd64/cpu_switch.S
==============================================================================
--- head/sys/amd64/amd64/cpu_switch.S Fri Jul 6 19:30:50 2012 (r238178)
+++ head/sys/amd64/amd64/cpu_switch.S Fri Jul 6 20:11:58 2012 (r238179)
@@ -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)
More information about the svn-src-all
mailing list