VirtualBox

Changeset 76402 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Dec 23, 2018 3:13:04 PM (6 years ago)
Author:
vboxsync
Message:

VBox/vmm/apic.h: Try avoid dragging in pdmdev.h, so use function for APIC device registration rather than exposing g_DeviceAPIC. bugref:9344

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/HMSVMAll.cpp

    r75759 r76402  
    2727#include <VBox/vmm/iem.h>
    2828#include <VBox/vmm/vm.h>
     29
     30#include <VBox/err.h>
    2931
    3032
  • trunk/src/VBox/VMM/VMMR0/HMSVMR0.cpp

    r76011 r76402  
    3535#include "HMInternal.h"
    3636#include <VBox/vmm/vm.h>
     37#include <VBox/err.h>
    3738#include "HMSVMR0.h"
    3839#include "dtrace/VBoxVMM.h"
  • trunk/src/VBox/VMM/VMMR3/APIC.cpp

    r73281 r76402  
    16701670 * APIC device registration structure.
    16711671 */
    1672 const PDMDEVREG g_DeviceAPIC =
     1672static const PDMDEVREG g_DeviceAPIC =
    16731673{
    16741674    /* u32Version */
     
    17231723};
    17241724
     1725
     1726/**
     1727 * Called by PDM to register the APIC device.
     1728 */
     1729VMMR3_INT_DECL(int) APICR3RegisterDevice(PPDMDEVREGCB pCallbacks)
     1730{
     1731    return pCallbacks->pfnRegister(pCallbacks, &g_DeviceAPIC);
     1732}
     1733
    17251734#endif /* !VBOX_DEVICE_STRUCT_TESTCASE */
    17261735
  • trunk/src/VBox/VMM/VMMR3/EM.cpp

    r75997 r76402  
    6767#include <VBox/dis.h>
    6868#include <VBox/disopcode.h>
     69#include <VBox/err.h>
    6970#include "VMMTracing.h"
    7071
  • trunk/src/VBox/VMM/VMMR3/GIMHv.cpp

    r73389 r76402  
    3232#include <VBox/vmm/vm.h>
    3333
     34#include <VBox/err.h>
    3435#include <VBox/version.h>
    3536
    3637#include <iprt/assert.h>
    37 #include <iprt/err.h>
    3838#include <iprt/string.h>
    3939#include <iprt/mem.h>
  • trunk/src/VBox/VMM/VMMR3/PDMDevice.cpp

    r73097 r76402  
    495495     * Load the internal VMM APIC device.
    496496     */
    497     int rc2 = pdmR3DevReg_Register(&RegCB.Core, &g_DeviceAPIC);
    498     AssertRCReturn(rc2, rc2);
     497    int rc = APICR3RegisterDevice(&RegCB.Core);
     498    AssertRCReturn(rc, rc);
    499499
    500500    /*
     
    503503    PCFGMNODE pDevicesNode = CFGMR3GetChild(CFGMR3GetRoot(pVM), "PDM/Devices");
    504504    bool fLoadBuiltin;
    505     int rc = CFGMR3QueryBool(pDevicesNode, "LoadBuiltin", &fLoadBuiltin);
     505    rc = CFGMR3QueryBool(pDevicesNode, "LoadBuiltin", &fLoadBuiltin);
    506506    if (rc == VERR_CFGM_VALUE_NOT_FOUND || rc == VERR_CFGM_NO_PARENT)
    507507        fLoadBuiltin = true;
  • trunk/src/VBox/VMM/include/APICInternal.h

    r73285 r76402  
    2222#include <VBox/types.h>
    2323#include <VBox/vmm/apic.h>
     24#include <VBox/vmm/pdmdev.h>
    2425
    2526/** @defgroup grp_apic_int       Internal
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