VirtualBox

忽略:
時間撮記:
2007-6-18 下午03:31:09 (17 年 以前)
作者:
vboxsync
訊息:

Fixed incorrect IOM return checks.

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/VMM/VMMAll/IOMAll.cpp

    r2981 r3145  
    720720 *
    721721 * @returns Strict VBox status code. Informational status codes other than the one documented
    722  *          here are to be treated as internal failure.
     722 *          here are to be treated as internal failure. Use IOM_SUCCESS() to check for success.
    723723 * @retval  VINF_SUCCESS                Success.
    724  * @retval  VINF_EM_FIRST-VINF_EM_LAST  Success but schedulinging information needs to be passed onto EM.
     724 * @retval  VINF_EM_FIRST-VINF_EM_LAST  Success with some exceptions (see IOM_SUCCESS()), the
     725 *                                      status code must be passed on to EM.
    725726 * @retval  VINF_IOM_HC_IOPORT_READ     Defer the read to ring-3. (R0/GC only)
    726727 *
     
    862863 *
    863864 * @returns Strict VBox status code. Informational status codes other than the one documented
    864  *          here are to be treated as internal failure.
     865 *          here are to be treated as internal failure. Use IOM_SUCCESS() to check for success.
    865866 * @retval  VINF_SUCCESS                Success.
    866  * @retval  VINF_EM_FIRST-VINF_EM_LAST  Success but schedulinging information needs to be passed onto EM.
     867 * @retval  VINF_EM_FIRST-VINF_EM_LAST  Success with some exceptions (see IOM_SUCCESS()), the
     868 *                                      status code must be passed on to EM.
    867869 * @retval  VINF_IOM_HC_IOPORT_READ     Defer the read to ring-3. (R0/GC only)
    868870 *
     
    987989 *
    988990 * @returns Strict VBox status code. Informational status codes other than the one documented
    989  *          here are to be treated as internal failure.
     991 *          here are to be treated as internal failure. Use IOM_SUCCESS() to check for success.
    990992 * @retval  VINF_SUCCESS                Success.
    991  * @retval  VINF_EM_FIRST-VINF_EM_LAST  Success but schedulinging information needs to be passed onto EM.
     993 * @retval  VINF_EM_FIRST-VINF_EM_LAST  Success with some exceptions (see IOM_SUCCESS()), the
     994 *                                      status code must be passed on to EM.
    992995 * @retval  VINF_IOM_HC_IOPORT_WRITE    Defer the write to ring-3. (R0/GC only)
    993996 *
     
    11071110 *
    11081111 * @returns Strict VBox status code. Informational status codes other than the one documented
    1109  *          here are to be treated as internal failure.
     1112 *          here are to be treated as internal failure. Use IOM_SUCCESS() to check for success.
    11101113 * @retval  VINF_SUCCESS                Success.
    1111  * @retval  VINF_EM_FIRST-VINF_EM_LAST  Success but schedulinging information needs to be passed onto EM.
     1114 * @retval  VINF_EM_FIRST-VINF_EM_LAST  Success with some exceptions (see IOM_SUCCESS()), the
     1115 *                                      status code must be passed on to EM.
    11121116 * @retval  VINF_IOM_HC_IOPORT_WRITE    Defer the write to ring-3. (R0/GC only)
    11131117 *
     
    13271331 *
    13281332 * @returns Strict VBox status code. Informational status codes other than the one documented
    1329  *          here are to be treated as internal failure.
     1333 *          here are to be treated as internal failure. Use IOM_SUCCESS() to check for success.
    13301334 * @retval  VINF_SUCCESS                Success.
    1331  * @retval  VINF_EM_FIRST-VINF_EM_LAST  Success but schedulinging information needs to be passed onto EM.
     1335 * @retval  VINF_EM_FIRST-VINF_EM_LAST  Success with some exceptions (see IOM_SUCCESS()), the
     1336 *                                      status code must be passed on to EM.
    13321337 * @retval  VINF_IOM_HC_IOPORT_READ     Defer the read to ring-3. (R0/GC only)
    13331338 * @retval  VINF_EM_RAW_GUEST_TRAP      The exception was left pending. (TRPMRaiseXcptErr)
     
    13641369        uint32_t    u32Data = ~0U;
    13651370        rc = IOMIOPortRead(pVM, uPort, &u32Data, cbSize);
    1366         if (    rc == VINF_SUCCESS
    1367             ||  (rc >= VINF_EM_FIRST && rc <= VINF_EM_LAST))
     1371        if (IOM_SUCCESS(rc))
    13681372        {
    13691373            /*
     
    13861390 *
    13871391 * @returns Strict VBox status code. Informational status codes other than the one documented
    1388  *          here are to be treated as internal failure.
     1392 *          here are to be treated as internal failure. Use IOM_SUCCESS() to check for success.
    13891393 * @retval  VINF_SUCCESS                Success.
    1390  * @retval  VINF_EM_FIRST-VINF_EM_LAST  Success but schedulinging information needs to be passed onto EM.
     1394 * @retval  VINF_EM_FIRST-VINF_EM_LAST  Success with some exceptions (see IOM_SUCCESS()), the
     1395 *                                      status code must be passed on to EM.
    13911396 * @retval  VINF_IOM_HC_IOPORT_WRITE    Defer the write to ring-3. (R0/GC only)
    13921397 * @retval  VINF_EM_RAW_GUEST_TRAP      The exception was left pending. (TRPMRaiseXcptErr)
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette