Changeset 57274 in vbox
- Timestamp:
- Aug 11, 2015 1:46:14 PM (9 years ago)
- Location:
- trunk/src/VBox/Runtime/r0drv/darwin
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/darwin/dbgkrnlinfo-r0drv-darwin.cpp
r56699 r57274 216 216 if (!pThis) 217 217 return VERR_NO_MEMORY; 218 IPRT_DARWIN_SAVE_EFL_AC(); 218 219 219 220 errno_t rc; … … 257 258 default: 258 259 AssertMsgFailed(("RTFileOpen received an invalid RW value, fOpen=%#x\n", fOpen)); 260 IPRT_DARWIN_RESTORE_EFL_AC(); 259 261 return VERR_INVALID_PARAMETER; 260 262 } … … 265 267 { 266 268 *phFile = pThis; 269 IPRT_DARWIN_RESTORE_EFL_AC(); 267 270 return VINF_SUCCESS; 268 271 } … … 274 277 RTMemFree(pThis); 275 278 279 IPRT_DARWIN_RESTORE_EFL_AC(); 276 280 return rc; 277 281 } … … 288 292 pThis->u32Magic = ~RTFILE_MAGIC; 289 293 294 IPRT_DARWIN_SAVE_EFL_AC(); 290 295 errno_t rc = vnode_close(pThis->hVnode, pThis->fOpenMode & (FREAD | FWRITE), pThis->hVfsCtx); 296 IPRT_DARWIN_RESTORE_EFL_AC(); 291 297 292 298 RTMemFree(pThis); … … 303 309 off_t offNative = (off_t)off; 304 310 AssertReturn((RTFOFF)offNative == off, VERR_OUT_OF_RANGE); 311 IPRT_DARWIN_SAVE_EFL_AC(); 305 312 306 313 #if 0 /* Added in 10.6, grr. */ … … 316 323 *pcbRead = cbToRead - cbLeft; 317 324 } 325 IPRT_DARWIN_RESTORE_EFL_AC(); 318 326 return !rc ? VINF_SUCCESS : RTErrConvertFromErrno(rc); 319 327 … … 321 329 uio_t hUio = uio_create(1, offNative, UIO_SYSSPACE, UIO_READ); 322 330 if (!hUio) 331 { 332 IPRT_DARWIN_RESTORE_EFL_AC(); 323 333 return VERR_NO_MEMORY; 334 } 324 335 errno_t rc; 325 336 if (uio_addiov(hUio, (user_addr_t)(uintptr_t)pvBuf, cbToRead) == 0) … … 334 345 rc = VERR_INTERNAL_ERROR_3; 335 346 uio_free(hUio); 347 IPRT_DARWIN_RESTORE_EFL_AC(); 336 348 return rc; 337 349 -
trunk/src/VBox/Runtime/r0drv/darwin/initterm-r0drv-darwin.cpp
r56290 r57274 52 52 DECLHIDDEN(int) rtR0InitNative(void) 53 53 { 54 IPRT_DARWIN_SAVE_EFL_AC(); 55 54 56 /* 55 57 * Create the lock group. … … 86 88 rtR0TermNative(); 87 89 90 IPRT_DARWIN_RESTORE_EFL_AC(); 88 91 return rc; 89 92 } … … 92 95 DECLHIDDEN(void) rtR0TermNative(void) 93 96 { 97 IPRT_DARWIN_SAVE_EFL_AC(); 98 94 99 /* 95 100 * Preemption hacks before the lock group. … … 105 110 g_pDarwinLockGroup = NULL; 106 111 } 112 113 IPRT_DARWIN_RESTORE_EFL_AC(); 107 114 } 108 115 -
trunk/src/VBox/Runtime/r0drv/darwin/memobj-r0drv-darwin.cpp
r57074 r57274 1054 1054 DECLHIDDEN(int) rtR0MemObjNativeProtect(PRTR0MEMOBJINTERNAL pMem, size_t offSub, size_t cbSub, uint32_t fProt) 1055 1055 { 1056 IPRT_DARWIN_SAVE_EFL_AC(); 1057 1056 1058 /* Get the map for the object. */ 1057 1059 vm_map_t pVmMap = rtR0MemObjDarwinGetMap(pMem); 1058 1060 if (!pVmMap) 1061 { 1062 IPRT_DARWIN_RESTORE_EFL_AC(); 1059 1063 return VERR_NOT_SUPPORTED; 1060 1061 IPRT_DARWIN_SAVE_EFL_AC(); 1064 } 1062 1065 1063 1066 /* … … 1154 1157 RTHCPHYS PhysAddr; 1155 1158 PRTR0MEMOBJDARWIN pMemDarwin = (PRTR0MEMOBJDARWIN)pMem; 1159 IPRT_DARWIN_SAVE_EFL_AC(); 1156 1160 1157 1161 #ifdef USE_VM_MAP_WIRE … … 1196 1200 } 1197 1201 1202 IPRT_DARWIN_RESTORE_EFL_AC(); 1198 1203 AssertReturn(PgNo, NIL_RTHCPHYS); 1199 1204 PhysAddr = (RTHCPHYS)PgNo << PAGE_SHIFT; … … 1219 1224 addr64_t Addr = pMemDesc->getPhysicalSegment64(iPage * PAGE_SIZE, NULL); 1220 1225 #endif 1226 IPRT_DARWIN_RESTORE_EFL_AC(); 1221 1227 AssertMsgReturn(Addr, ("iPage=%u\n", iPage), NIL_RTHCPHYS); 1222 1228 PhysAddr = Addr; -
trunk/src/VBox/Runtime/r0drv/darwin/mp-r0drv-darwin.cpp
r57074 r57274 49 49 static int rtMpDarwinInitMaxCpus(void) 50 50 { 51 IPRT_DARWIN_SAVE_EFL_AC(); 52 51 53 int32_t cCpus = -1; 52 54 size_t oldLen = sizeof(cCpus); … … 59 61 60 62 ASMAtomicWriteS32(&g_cMaxCpus, cCpus); 63 64 IPRT_DARWIN_RESTORE_EFL_AC(); 61 65 return cCpus; 62 66 } … … 294 298 if (g_pfnR0DarwinCpuInterrupt == NULL) 295 299 return VERR_NOT_SUPPORTED; 300 IPRT_DARWIN_SAVE_EFL_AC(); /* paranoia */ 296 301 g_pfnR0DarwinCpuInterrupt(idCpu); 302 IPRT_DARWIN_RESTORE_EFL_AC(); 297 303 return VINF_SUCCESS; 298 304 } -
trunk/src/VBox/Runtime/r0drv/darwin/thread2-r0drv-darwin.cpp
r56290 r57274 173 173 { 174 174 RT_ASSERT_PREEMPTIBLE(); 175 IPRT_DARWIN_SAVE_EFL_AC(); 175 176 176 177 thread_t NativeThread; … … 180 181 *pNativeThread = (RTNATIVETHREAD)NativeThread; 181 182 thread_deallocate(NativeThread); 183 IPRT_DARWIN_RESTORE_EFL_AC(); 182 184 return VINF_SUCCESS; 183 185 } 186 IPRT_DARWIN_RESTORE_EFL_AC(); 184 187 return RTErrConvertFromMachKernReturn(kr); 185 188 }
Note:
See TracChangeset
for help on using the changeset viewer.