VirtualBox

Changeset 92079 in vbox for trunk


Ignore:
Timestamp:
Oct 26, 2021 12:10:56 PM (3 years ago)
Author:
vboxsync
Message:

Devices/testcase/tstDevice: Started working on supporting R0 device instances, bugref:9006

Location:
trunk/src/VBox/Devices
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Makefile.kmk

    r92077 r92079  
    15051505  tstDevice_SOURCES     = \
    15061506        testcase/tstDevice.cpp \
    1507     testcase/tstDeviceR0.cpp \
     1507        testcase/tstDeviceR0.cpp \
    15081508        testcase/tstDeviceCfg.cpp \
    15091509        testcase/tstDevicePdmDevHlp.cpp \
     1510        testcase/tstDevicePdmDevHlpR0.cpp \
    15101511        testcase/tstDevicePdmThread.cpp \
    15111512        testcase/tstDeviceSsmFuzz.cpp \
  • trunk/src/VBox/Devices/testcase/tstDeviceInternal.h

    r92077 r92079  
    509509#ifdef IN_RING3
    510510extern const PDMDEVHLPR3 g_tstDevPdmDevHlpR3;
    511 #elif defined(IN_RING0)
    512 //extern const PDMDEVHLPR0 g_tstDevPdmDevHlpR0;
    513511#endif
    514 
     512extern const PDMDEVHLPR0 g_tstDevPdmDevHlpR0;
    515513
    516514DECLHIDDEN(int) tstDevPdmLdrGetSymbol(PTSTDEVDUTINT pThis, const char *pszMod, TSTDEVPDMMODTYPE enmModType,
  • trunk/src/VBox/Devices/testcase/tstDeviceR0.cpp

    r92077 r92079  
    104104        pDevInsR0->u32Version             = PDM_DEVINSR0_VERSION;
    105105        pDevInsR0->iInstance              = 0;
    106         pDevInsR0->pHlpR0                 = (PCPDMDEVHLPR0)0xdeadbeef; //&g_pdmR0DevHlp;
     106        pDevInsR0->pHlpR0                 = &g_tstDevPdmDevHlpR0;
    107107        pDevInsR0->pvInstanceDataR0       = (uint8_t *)pDevInsR0 + cbRing0 + cbRing3 + cbRC;
    108         pDevInsR0->pvInstanceDataForR0    = &pDevInsR3->achInstanceData[0];
     108        pDevInsR0->pvInstanceDataForR0    = &pDevInsR0->achInstanceData[0];
    109109        pDevInsR0->pCritSectRoR0          = (PPDMCRITSECT)((uint8_t *)pDevInsR0->pvInstanceDataR0 + cbShared);
    110110        pDevInsR0->pReg                   = pPdmDevR0;
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