VirtualBox

Changeset 7523 in vbox


Ignore:
Timestamp:
Mar 25, 2008 9:52:30 AM (17 years ago)
Author:
vboxsync
Message:

Unconditionally resolve R0 function addresses

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PDMDevice.cpp

    r6796 r7523  
    3131#include <VBox/vm.h>
    3232#include <VBox/vmm.h>
    33 #include <VBox/hwaccm.h>
    3433
    3534#include <VBox/version.h>
     
    12761275             Port, cPorts, pvUser, pszOut, pszOut, pszIn, pszIn, pszOutStr, pszOutStr, pszInStr, pszInStr, pszDesc, pszDesc));
    12771276
    1278     if (!HWACCMR3IsAllowed(pDevIns->Internal.s.pVMHC))
    1279         return VINF_SUCCESS; /* NOP */
    1280 
    12811277    /*
    12821278     * Resolve the functions (one of the can be NULL).
     
    14181414    LogFlow(("pdmR3DevHlp_MMIORegisterHC: caller='%s'/%d: GCPhysStart=%VGp cbRange=%#x pvUser=%p pszWrite=%p:{%s} pszRead=%p:{%s} pszFill=%p:{%s} pszDesc=%p:{%s}\n",
    14191415             pDevIns->pDevReg->szDeviceName, pDevIns->iInstance, GCPhysStart, cbRange, pvUser, pszWrite, pszWrite, pszRead, pszRead, pszFill, pszFill, pszDesc, pszDesc));
    1420 
    1421     if (!HWACCMR3IsAllowed(pDevIns->Internal.s.pVMHC))
    1422         return VINF_SUCCESS; /* NOP */
    14231416
    14241417    /*
     
    25342527     * Resolve and init the R0 bits.
    25352528     */
    2536     if (    HWACCMR3IsAllowed(pVM)
    2537         &&  pPciBusReg->pszSetIrqR0)
     2529    if (pPciBusReg->pszSetIrqR0)
    25382530    {
    25392531        int rc = PDMR3GetSymbolR0Lazy(pVM, pDevIns->pDevReg->szR0Mod, pPciBusReg->pszSetIrqR0, &pPciBus->pfnSetIrqR0);
     
    26722664     * R0 stuff.
    26732665     */
    2674     if (    HWACCMR3IsAllowed(pVM)
    2675         &&  pPicReg->pszSetIrqR0)
     2666    if (pPicReg->pszSetIrqR0)
    26762667    {
    26772668        int rc = PDMR3GetSymbolR0Lazy(pVM, pDevIns->pDevReg->szR0Mod, pPicReg->pszSetIrqR0, &pVM->pdm.s.Pic.pfnSetIrqR0);
     
    28682859     * Resolve & initialize the R0 bits.
    28692860     */
    2870     if (    HWACCMR3IsAllowed(pVM)
    2871         &&  pApicReg->pszGetInterruptR0)
     2861    if (pApicReg->pszGetInterruptR0)
    28722862    {
    28732863        int rc = PDMR3GetSymbolR0Lazy(pVM, pDevIns->pDevReg->szR0Mod, pApicReg->pszGetInterruptR0, &pVM->pdm.s.Apic.pfnGetInterruptR0);
     
    30333023     * Resolve & initialize the R0 bits.
    30343024     */
    3035     if (    HWACCMR3IsAllowed(pVM)
    3036         &&  pIoApicReg->pszSetIrqR0)
     3025    if (pIoApicReg->pszSetIrqR0)
    30373026    {
    30383027        int rc = PDMR3GetSymbolR0Lazy(pVM, pDevIns->pDevReg->szR0Mod, pIoApicReg->pszSetIrqR0, &pVM->pdm.s.IoApic.pfnSetIrqR0);
  • trunk/src/VBox/VMM/PGMHandler.cpp

    r6914 r7523  
    101101    R0PTRTYPE(PFNPGMR0PHYSHANDLER) pfnHandlerR0 = NIL_RTR0PTR;
    102102    int rc = VINF_SUCCESS;
    103     if (pszHandlerR0 && HWACCMR3IsAllowed(pVM))
     103    if (pszHandlerR0)
    104104        rc = PDMR3GetSymbolR0Lazy(pVM, pszModR0, pszHandlerR0, &pfnHandlerR0);
    105105    if (VBOX_SUCCESS(rc))
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