Changeset 66236 in vbox for trunk/src/VBox/Runtime/common/asm
- Timestamp:
- Mar 23, 2017 5:42:56 PM (8 years ago)
- Location:
- trunk/src/VBox/Runtime/common/asm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/asm/ASMGetXcr0.asm
r62477 r66236 45 45 or rax, rdx 46 46 %endif 47 %if ARCH_BITS == 16 ; DX:CX:BX:AX - DX=15:0, CX=31:16, BX=47:32, AX=63:48 48 mov ebx, edx 49 mov ecx, eax 50 shr ecx, 16 51 xchg eax, edx 52 shr eax, 16 53 %endif 47 54 ret 48 55 ENDPROC ASMGetXcr0 -
trunk/src/VBox/Runtime/common/asm/ASMSetXcr0.asm
r62477 r66236 48 48 shr rdx, 32 49 49 mov eax, edi 50 %elif def RT_ARCH_X8650 %elif ARCH_BITS == 32 51 51 mov eax, [esp + 4] 52 52 mov edx, [esp + 8] 53 %elif ARCH_BITS == 16 54 push bp 55 mov bp, sp 56 mov eax, [bp + 4] 57 mov edx, [bp + 8] 53 58 %else 54 59 %error "Undefined arch?" 55 60 %endif 61 56 62 xor ecx, ecx 57 63 xsetbv 64 65 %if ARCH_BITS == 16 66 leave 67 %endif 58 68 ret 59 69 ENDPROC ASMSetXcr0
Note:
See TracChangeset
for help on using the changeset viewer.