Changeset 85698 in vbox for trunk/src/VBox/Runtime/r0drv/linux/memuserkernel-r0drv-linux.c
- Timestamp:
- Aug 11, 2020 5:05:29 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 139838
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/linux/memuserkernel-r0drv-linux.c
r82968 r85698 67 67 { 68 68 IPRT_LINUX_SAVE_EFL_AC(); 69 #if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 0,0) || defined(RHEL_81)69 #if RTLNX_VER_MIN(5,0,0) || defined(RHEL_81) 70 70 bool fRc = access_ok((void *)R3Ptr, 1); 71 71 #else … … 87 87 #else 88 88 # error "PORT ME" 89 #if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 0,0) || defined(RHEL_81)89 #if RTLNX_VER_MIN(5,0,0) || defined(RHEL_81) 90 90 return !access_ok(pv, 1); 91 91 #else 92 92 return !access_ok(VERIFY_READ, pv, 1); 93 #endif /* LINUX_VERSION_CODE */93 #endif 94 94 #endif 95 95 } … … 113 113 static int rtR0MemKernelCopyLnxWorker(void *pvDst, void const *pvSrc, size_t cb) 114 114 { 115 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 5,55)115 #if RTLNX_VER_MIN(2,5,55) 116 116 /* _ASM_EXTABLE was introduced in 2.6.25 from what I can tell. Using #ifndef 117 117 here since it has to be a macro and you never know what someone might have
Note:
See TracChangeset
for help on using the changeset viewer.