Changeset 57228 in vbox for trunk/src/VBox/Runtime/r0drv/darwin/the-darwin-kernel.h
- Timestamp:
- Aug 6, 2015 11:27:10 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/darwin/the-darwin-kernel.h
r57077 r57228 97 97 #include <iprt/asm-amd64-x86.h> 98 98 #include <iprt/x86.h> 99 #define IPRT_DARWIN_SAVE_EFL_AC() RTCCUINTREG fSavedEfl = ASMGetFlags(); 100 #define IPRT_DARWIN_RESTORE_EFL_AC() ASMSetFlags(fSavedEfl) 101 #define IPRT_DARWIN_RESTORE_EFL_ONLY_AC() ASMSetFlags((ASMGetFlags() & ~X86_EFL_AC) | (fSavedEfl & X86_EFL_AC)) 99 #define IPRT_DARWIN_SAVE_EFL_AC() RTCCUINTREG const fSavedEfl = ASMGetFlags(); 100 #define IPRT_DARWIN_RESTORE_EFL_AC() ASMSetFlags(fSavedEfl) 101 #define IPRT_DARWIN_RESTORE_EFL_ONLY_AC() ASMChangeFlags(~X86_EFL_AC, fSavedEfl & X86_EFL_AC) 102 #define IPRT_DARWIN_RESTORE_EFL_ONLY_AC_EX(a_fSavedEfl) ASMChangeFlags(~X86_EFL_AC, (a_fSavedEfl) & X86_EFL_AC) 102 103 /** @} */ 103 104
Note:
See TracChangeset
for help on using the changeset viewer.