Changeset 54144 in vbox for trunk/src/VBox/HostDrivers/Support/linux
- Timestamp:
- Feb 11, 2015 3:11:55 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/linux/SUPDrv-linux.c
r53396 r54144 48 48 # include <iprt/power.h> 49 49 # 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) { } 50 56 #endif 51 57 … … 649 655 { 650 656 PSUPDRVSESSION pSession = (PSUPDRVSESSION)pFilp->private_data; 657 int rc; 651 658 652 659 /* … … 659 666 || uCmd == SUP_IOCTL_FAST_DO_NOP) 660 667 && pSession->fUnrestricted == true)) 661 return supdrvIOCtlFast(uCmd, ulArg, &g_DevExt, pSession); 668 { 669 stac(); 670 rc = supdrvIOCtlFast(uCmd, ulArg, &g_DevExt, pSession); 671 clac(); 672 return rc; 673 } 662 674 return VBoxDrvLinuxIOCtlSlow(pFilp, uCmd, ulArg, pSession); 663 675 664 676 #else /* !HAVE_UNLOCKED_IOCTL */ 665 666 int rc;667 677 unlock_kernel(); 668 678 if (RT_LIKELY( ( uCmd == SUP_IOCTL_FAST_DO_RAW_RUN … … 742 752 * Process the IOCtl. 743 753 */ 754 stac(); 744 755 rc = supdrvIOCtl(uCmd, &g_DevExt, pSession, pHdr, cbBuf); 756 clac(); 745 757 746 758 /*
Note:
See TracChangeset
for help on using the changeset viewer.