VirtualBox

Ignore:
Timestamp:
Aug 11, 2015 1:46:14 PM (9 years ago)
Author:
vboxsync
Message:

iprt/r0drv/darwin: The remaining (hopefully) places where we might possibly need to preserve EFLAGS.AC.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/darwin/dbgkrnlinfo-r0drv-darwin.cpp

    r56699 r57274  
    216216    if (!pThis)
    217217        return VERR_NO_MEMORY;
     218    IPRT_DARWIN_SAVE_EFL_AC();
    218219
    219220    errno_t rc;
     
    257258            default:
    258259                AssertMsgFailed(("RTFileOpen received an invalid RW value, fOpen=%#x\n", fOpen));
     260                IPRT_DARWIN_RESTORE_EFL_AC();
    259261                return VERR_INVALID_PARAMETER;
    260262        }
     
    265267        {
    266268            *phFile = pThis;
     269            IPRT_DARWIN_RESTORE_EFL_AC();
    267270            return VINF_SUCCESS;
    268271        }
     
    274277    RTMemFree(pThis);
    275278
     279    IPRT_DARWIN_RESTORE_EFL_AC();
    276280    return rc;
    277281}
     
    288292    pThis->u32Magic = ~RTFILE_MAGIC;
    289293
     294    IPRT_DARWIN_SAVE_EFL_AC();
    290295    errno_t rc = vnode_close(pThis->hVnode, pThis->fOpenMode & (FREAD | FWRITE), pThis->hVfsCtx);
     296    IPRT_DARWIN_RESTORE_EFL_AC();
    291297
    292298    RTMemFree(pThis);
     
    303309    off_t offNative = (off_t)off;
    304310    AssertReturn((RTFOFF)offNative == off, VERR_OUT_OF_RANGE);
     311    IPRT_DARWIN_SAVE_EFL_AC();
    305312
    306313#if 0 /* Added in 10.6, grr. */
     
    316323        *pcbRead = cbToRead - cbLeft;
    317324    }
     325    IPRT_DARWIN_RESTORE_EFL_AC();
    318326    return !rc ? VINF_SUCCESS : RTErrConvertFromErrno(rc);
    319327
     
    321329    uio_t hUio = uio_create(1, offNative, UIO_SYSSPACE, UIO_READ);
    322330    if (!hUio)
     331    {
     332        IPRT_DARWIN_RESTORE_EFL_AC();
    323333        return VERR_NO_MEMORY;
     334    }
    324335    errno_t rc;
    325336    if (uio_addiov(hUio, (user_addr_t)(uintptr_t)pvBuf, cbToRead) == 0)
     
    334345        rc = VERR_INTERNAL_ERROR_3;
    335346    uio_free(hUio);
     347    IPRT_DARWIN_RESTORE_EFL_AC();
    336348    return rc;
    337349
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