VirtualBox

Changeset 44691 in vbox for trunk/src/VBox/VMM/VMMR3


Ignore:
Timestamp:
Feb 14, 2013 3:33:24 PM (12 years ago)
Author:
vboxsync
Message:

Added a device helper for registering device registers with DBGF (breaks extpacks). Added IOREDTBLn subfields.

Location:
trunk/src/VBox/VMM/VMMR3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/DBGFReg.cpp

    r44689 r44691  
    525525 *
    526526 * @returns VBox status code.
    527  * @param   enmReg              The register identifier.
    528  * @param   enmType             The register type.  This is for sort out
    529  *                              aliases.  Pass DBGFREGVALTYPE_INVALID to get
    530  *                              the standard name.
    531  */
    532 VMMR3DECL(int) DBGFR3RegRegisterDevice(PVM pVM, PCDBGFREGDESC paRegisters, PPDMDEVINS pDevIns, const char *pszPrefix,
    533                                             uint32_t iInstance)
     527 * @param   pVM             Pointer to the VM.
     528 * @param   paRegisters     The register descriptors.
     529 * @param   pDevIns         The device instance. This will be the callback user
     530 *                          argument.
     531 * @param   pszPrefix       The device name.
     532 * @param   iInstance       The device instance.
     533 */
     534VMMR3_INT_DECL(int) DBGFR3RegRegisterDevice(PVM pVM, PCDBGFREGDESC paRegisters, PPDMDEVINS pDevIns,
     535                                            const char *pszPrefix, uint32_t iInstance)
    534536{
    535537    AssertPtrReturn(paRegisters, VERR_INVALID_POINTER);
  • trunk/src/VBox/VMM/VMMR3/PDMDevHlp.cpp

    r44528 r44691  
    10061006
    10071007    LogFlow(("pdmR3DevHlp_DBGFInfoRegister: caller='%s'/%d: returns %Rrc\n", pDevIns->pReg->szName, pDevIns->iInstance, rc));
     1008    return rc;
     1009}
     1010
     1011
     1012/** @interface_method_impl{PDMDEVHLPR3,pfnDBGFRegRegister} */
     1013static DECLCALLBACK(int) pdmR3DevHlp_DBGFRegRegister(PPDMDEVINS pDevIns, PCDBGFREGDESC paRegisters)
     1014{
     1015    PDMDEV_ASSERT_DEVINS(pDevIns);
     1016    LogFlow(("pdmR3DevHlp_DBGFRegRegister: caller='%s'/%d: paRegisters=%p\n",
     1017             pDevIns->pReg->szName, pDevIns->iInstance, paRegisters));
     1018
     1019    PVM pVM = pDevIns->Internal.s.pVMR3;
     1020    VM_ASSERT_EMT(pVM);
     1021    int rc = DBGFR3RegRegisterDevice(pVM, paRegisters, pDevIns, pDevIns->pReg->szName, pDevIns->iInstance);
     1022
     1023    LogFlow(("pdmR3DevHlp_DBGFRegRegister: caller='%s'/%d: returns %Rrc\n", pDevIns->pReg->szName, pDevIns->iInstance, rc));
    10081024    return rc;
    10091025}
     
    33753391    pdmR3DevHlp_DBGFStopV,
    33763392    pdmR3DevHlp_DBGFInfoRegister,
     3393    pdmR3DevHlp_DBGFRegRegister,
    33773394    pdmR3DevHlp_DBGFTraceBuf,
    33783395    pdmR3DevHlp_STAMRegister,
     
    36053622    pdmR3DevHlp_DBGFStopV,
    36063623    pdmR3DevHlp_DBGFInfoRegister,
     3624    pdmR3DevHlp_DBGFRegRegister,
    36073625    pdmR3DevHlp_DBGFTraceBuf,
    36083626    pdmR3DevHlp_STAMRegister,
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