VirtualBox

Ignore:
Timestamp:
Aug 8, 2015 11:21:45 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
102006
Message:

SUPDrv,VBoxNetFlt,VBoxNetAdp: Include the-darwin-kernel.h to avoid duplicating workarounds and EFLAGS.AC macros.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/darwin/SUPDrv-darwin.cpp

    r57244 r57252  
    2929*******************************************************************************/
    3030#define LOG_GROUP LOG_GROUP_SUP_DRV
    31 /*
    32  * Deal with conflicts first.
    33  * PVM - BSD mess, that FreeBSD has correct a long time ago.
    34  * iprt/types.h before sys/param.h - prevents UINT32_C and friends.
    35  */
    36 #include <iprt/types.h>
    37 #include <sys/param.h>
    38 #undef PVM
    39 
    40 #include <IOKit/IOLib.h> /* Assert as function */
     31#include "../../../Runtime/r0drv/darwin/the-darwin-kernel.h"
    4132
    4233#include "../SUPDrvInternal.h"
     
    7869RT_C_DECLS_END
    7970#endif
    80 
    81 /* The following macros are duplicated in the-darwin-kernel.h. */
    82 #define IPRT_DARWIN_SAVE_EFL_AC()           RTCCUINTREG const fSavedEfl = ASMGetFlags();
    83 #define IPRT_DARWIN_RESTORE_EFL_AC()        ASMSetFlags(fSavedEfl)
    84 #define IPRT_DARWIN_RESTORE_EFL_ONLY_AC()   ASMChangeFlags(~X86_EFL_AC, fSavedEfl & X86_EFL_AC)
    85 
    8671
    8772/* Temporary debugging - very temporary... */
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