VirtualBox

Changeset 54802 in vbox


Ignore:
Timestamp:
Mar 17, 2015 8:32:43 AM (10 years ago)
Author:
vboxsync
Message:

another place where we have to handle SMAP

Location:
trunk/src/VBox
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/linux/SUPDrv-linux.c

    r54650 r54802  
    4848# include <iprt/power.h>
    4949# define VBOX_WITH_SUSPEND_NOTIFICATION
    50 #endif
    51 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 7, 0)
    52 # include <asm/smap.h>
    53 #else
    54 static inline void clac(void) { }
    55 static inline void stac(void) { }
    5650#endif
    5751
  • trunk/src/VBox/Runtime/r0drv/linux/the-linux-kernel.h

    r54650 r54802  
    146146#endif
    147147
     148#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 7, 0)
     149# include <asm/smap.h>
     150#else
     151static inline void clac(void) { }
     152static inline void stac(void) { }
     153#endif
     154
    148155#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0)
    149156# ifndef page_to_pfn
  • trunk/src/VBox/Runtime/r0drv/linux/threadctxhooks-r0drv-linux.c

    r48383 r54802  
    9090    Assert(!RTThreadPreemptIsEnabled(NIL_RTTHREAD));
    9191
     92    stac();
    9293    pThis->pfnThreadCtxHook(RTTHREADCTXEVENT_PREEMPTING, pThis->pvUser);
     94    clac();
    9395}
    9496
     
    110112    Assert(pThis->fRegistered);
    111113
     114    stac();
    112115    pThis->pfnThreadCtxHook(RTTHREADCTXEVENT_RESUMED, pThis->pvUser);
     116    clac();
    113117}
    114118
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