Changeset 20535 in vbox for trunk/src/VBox
- Timestamp:
- Jun 13, 2009 8:58:29 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/CPUMR0A.asm
r16113 r20535 82 82 mov xDX, dword [esp + 4] 83 83 %endif 84 pushf ; The darwin kernel can get upset or upset things if an 85 cli ; interrupt occurs while we're doing fxsave/fxrstor/cr0. 84 86 85 87 ; Switch the state. … … 104 106 .done: 105 107 mov cr0, xCX ; and restore old CR0 again ;; @todo optimize this. 106 .fpu_not_used: 108 popf 107 109 xor eax, eax 108 110 ret … … 176 178 jz short .fpu_not_used 177 179 180 pushf ; The darwin kernel can get upset or upset things if an 181 cli ; interrupt occurs while we're doing fxsave/fxrstor/cr0. 182 178 183 mov xAX, cr0 ; Make sure it's safe to access the FPU state. 179 184 mov xCX, xAX ; save old CR0 … … 195 200 mov cr0, xCX ; and restore old CR0 again ;; @todo optimize this. 196 201 and dword [xDX + CPUMCPU.fUseFlags], ~CPUM_USED_FPU 202 popf 197 203 .fpu_not_used: 198 204 xor eax, eax … … 237 243 jz short .fpu_not_used 238 244 245 pushf ; The darwin kernel can get upset or upset things if an 246 cli ; interrupt occurs while we're doing fxsave/fxrstor/cr0. 247 239 248 mov xAX, cr0 240 249 mov xCX, xAX ; save old CR0 … … 255 264 mov cr0, xCX ; and restore old CR0 again 256 265 and dword [xDX + CPUMCPU.fUseFlags], ~CPUM_USED_FPU 266 popf 257 267 .fpu_not_used: 258 268 xor eax, eax
Note:
See TracChangeset
for help on using the changeset viewer.