VirtualBox

Changeset 91238 in vbox


Ignore:
Timestamp:
Sep 14, 2021 8:45:35 PM (3 years ago)
Author:
vboxsync
Message:

DevACPI: Use ASSERT_GUEST instead of Assert in a couple of place; fixed a PDMDevHlpDBGFStop.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/DevACPI.cpp

    r91083 r91238  
    2525#include <VBox/vmm/dbgftrace.h>
    2626#include <VBox/vmm/vmcpuset.h>
     27#include <VBox/AssertGuest.h>
    2728#include <VBox/log.h>
    2829#include <VBox/param.h>
     
    14721473        u32 >>= 2;
    14731474    }
    1474     Assert(u32 < BAT_INDEX_LAST);
     1475    ASSERT_GUEST_MSG(u32 < BAT_INDEX_LAST, ("%#x\n", u32));
    14751476    pThis->uBatteryIndex = u32;
    14761477
     
    15671568            u32 >>= 2;
    15681569
    1569         AssertMsg(u32 < SYSTEM_INFO_INDEX_END, ("%u - Max=%u. IndexShift=%u\n", u32, SYSTEM_INFO_INDEX_END, pThis->u8IndexShift));
     1570        ASSERT_GUEST_MSG(u32 < SYSTEM_INFO_INDEX_END, ("%u - Max=%u. IndexShift=%u\n", u32, SYSTEM_INFO_INDEX_END, pThis->u8IndexShift));
    15701571        pThis->uSystemInfoIndex = u32;
    15711572    }
     
    17751776        default:
    17761777            *pu32 = UINT32_MAX;
    1777             rc = PDMDevHlpDBGFStop(pDevIns, RT_SRC_POS, "cb=%d offPort=%u idx=%u\n", cb, offPort, pThis->uBatteryIndex);
     1778            rc = PDMDevHlpDBGFStop(pDevIns, RT_SRC_POS, "cb=%d offPort=%u idx=%u\n", cb, offPort, uSystemInfoIndex);
    17781779            break;
    17791780    }
     
    39723973    for (uint8_t i = 0; i < pThis->cCustTbls; i++)
    39733974    {
    3974         Assert(i < MAX_CUST_TABLES);
     3975        AssertBreak(i < MAX_CUST_TABLES);
    39753976        acpiR3PhysCopy(pDevIns, aGCPhysCust[i] + addend, pThisCC->apu8CustBin[i], pThisCC->acbCustBin[i]);
    39763977        aGCPhysRsdt[iCust + i] = aGCPhysCust[i] + addend;
     
    46874688
    46884689            pThis->cCustTbls++;
    4689             Assert(pThis->cCustTbls <= MAX_CUST_TABLES);
     4690            AssertBreak(pThis->cCustTbls <= MAX_CUST_TABLES);
    46904691        }
    46914692    }
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