VirtualBox

Ignore:
Timestamp:
Aug 6, 2015 11:27:10 PM (9 years ago)
Author:
vboxsync
Message:

IPRT/r0drv/darwin: More EFLAGS.AC paranoia.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/darwin/the-darwin-kernel.h

    r57077 r57228  
    9797#include <iprt/asm-amd64-x86.h>
    9898#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)
    102103/** @} */
    103104
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette