Changeset 50008 in vbox for trunk/src/VBox/Runtime/r0drv
- Timestamp:
- Dec 27, 2013 2:20:34 PM (11 years ago)
- Location:
- trunk/src/VBox/Runtime/r0drv/linux
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/linux/alloc-r0drv-linux.c
r48935 r50008 38 38 39 39 40 #if defined(RT_ARCH_AMD64) || defined(DOXYGEN_RUNNING)40 #if (defined(RT_ARCH_AMD64) || defined(DOXYGEN_RUNNING)) && !defined(RTMEMALLOC_EXEC_HEAP) 41 41 # if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 23) 42 42 /** … … 96 96 /** Spinlock protecting the heap. */ 97 97 static RTSPINLOCK g_HeapExecSpinlock = NIL_RTSPINLOCK; 98 #endif 98 99 99 100 … … 104 105 DECLHIDDEN(void) rtR0MemExecCleanup(void) 105 106 { 107 #ifdef RTMEMALLOC_EXEC_HEAP 106 108 RTSpinlockDestroy(g_HeapExecSpinlock); 107 109 g_HeapExecSpinlock = NIL_RTSPINLOCK; 110 #endif 108 111 } 109 112 … … 121 124 * 122 125 * @returns IPRT status code. 126 * @retval VERR_NOT_SUPPORTED if the code isn't enabled. 123 127 * @param pvMemory Pointer to the memory block. 124 128 * @param cb The size of the memory block. … … 126 130 RTR0DECL(int) RTR0MemExecDonate(void *pvMemory, size_t cb) 127 131 { 132 #ifdef RTMEMALLOC_EXEC_HEAP 128 133 int rc; 129 134 AssertReturn(g_HeapExec == NIL_RTHEAPSIMPLE, VERR_WRONG_ORDER); … … 137 142 } 138 143 return rc; 144 #else 145 return VERR_NOT_SUPPORTED; 146 #endif 139 147 } 140 148 RT_EXPORT_SYMBOL(RTR0MemExecDonate); 141 149 142 #endif /* RTMEMALLOC_EXEC_HEAP */143 150 144 151 -
trunk/src/VBox/Runtime/r0drv/linux/initterm-r0drv-linux.c
r48935 r50008 50 50 * Internal Functions * 51 51 *******************************************************************************/ 52 #if defined(RT_ARCH_AMD64) && LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 23)53 52 /* in alloc-r0drv0-linux.c */ 54 53 DECLHIDDEN(void) rtR0MemExecCleanup(void); 55 #endif56 54 57 55 … … 115 113 #endif 116 114 117 #if defined(RT_ARCH_AMD64) && LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 23)118 115 rtR0MemExecCleanup(); 119 #endif120 116 } 121 117
Note:
See TracChangeset
for help on using the changeset viewer.