VirtualBox

Changeset 9693 in vbox


Ignore:
Timestamp:
Jun 13, 2008 4:30:46 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
32031
Message:

VMI BIOS stubs

Location:
trunk/src/VBox/Devices
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Builtins2.cpp

    r8155 r9693  
    4242    (void *)&g_abPcBiosBinary,
    4343    (void *)&g_abVgaBiosBinary,
    44     (void *)&g_abNetBiosBinary
     44    (void *)&g_abNetBiosBinary,
     45#ifndef VBOX_OSE
     46    (void *)&g_abVmiBiosBinary,
     47#endif
    4548};
    4649
  • trunk/src/VBox/Devices/Builtins2.h

    r8155 r9693  
    3434extern DECLEXPORT(const unsigned char)  g_abNetBiosBinary[];
    3535extern DECLEXPORT(const unsigned)       g_cbNetBiosBinary;
     36extern DECLEXPORT(const unsigned char)  g_abVmiBiosBinary[];
     37extern DECLEXPORT(const unsigned)       g_cbVmiBiosBinary;
    3638#else
    3739extern DECLIMPORT(const unsigned char)  g_abPcBiosBinary[];
     
    4143extern DECLIMPORT(const unsigned char)  g_abNetBiosBinary[];
    4244extern DECLIMPORT(const unsigned)       g_cbNetBiosBinary;
     45extern DECLIMPORT(const unsigned char)  g_abVmiBiosBinary[];
     46extern DECLIMPORT(const unsigned)       g_cbVmiBiosBinary;
    4347#endif
    4448extern const PDMDEVREG g_DeviceAPIC;
  • trunk/src/VBox/Devices/Makefile.kmk

    r9435 r9693  
    2525# Include sub-makefiles.
    2626include $(PATH_SUB_CURRENT)/PC/BIOS/Makefile.kmk
     27ifndef VBOX_OSE # not yet
     28 include $(PATH_SUB_CURRENT)/PC/VMI/Makefile.kmk
     29endif
    2730include $(PATH_SUB_CURRENT)/Graphics/BIOS/Makefile.kmk
    2831include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
     
    209212        $(PATH_LIB)/VgaBiosBin$(VBOX_SUFF_LIB) \
    210213        $(PATH_LIB)/NetBiosBin$(VBOX_SUFF_LIB) \
     214        $(PATH_LIB)/VmiBiosBin$(VBOX_SUFF_LIB) \
    211215        $(LIB_VMM) \
    212216        $(LIB_RUNTIME)
  • trunk/src/VBox/Devices/PC/DevPcBios.cpp

    r9454 r9693  
    11431143
    11441144    if (pData->u8IOAPIC)
    1145         pcbiosPlantMPStable(pDevIns, pData->au8DMIPage + 0x100);
     1145        pcbiosPlantMPStable(pDevIns, pData->au8DMIPage + VBOX_DMI_TABLE_SIZE);
    11461146}
    11471147
     
    13761376        pcbiosPlantMPStable(pDevIns, pData->au8DMIPage + VBOX_DMI_TABLE_SIZE);
    13771377
    1378     rc = PDMDevHlpROMRegister(pDevIns, VBOX_DMI_TABLE_BASE, 0x1000, pData->au8DMIPage, false /* fShadow */, "DMI tables");
     1378    rc = PDMDevHlpROMRegister(pDevIns, VBOX_DMI_TABLE_BASE, _4K, pData->au8DMIPage, false /* fShadow */, "DMI tables");
    13791379    if (VBOX_FAILURE(rc))
    13801380        return rc;
     
    15061506    if (VBOX_FAILURE(rc))
    15071507        return rc;
     1508
     1509#ifndef VBOX_OSE
     1510    /*
     1511     * Map the VMI BIOS into memory.
     1512     */
     1513    AssertReleaseMsg(g_cbVmiBiosBinary == _4K, ("cbVmiBiosBinary=%#x\n", g_cbVmiBiosBinary));
     1514    rc = PDMDevHlpROMRegister(pDevIns, VBOX_VMI_BIOS_BASE, g_cbVmiBiosBinary, g_abVmiBiosBinary, false, "VMI BIOS");
     1515    if (VBOX_FAILURE(rc))
     1516        return rc;
     1517#endif
    15081518
    15091519    /*
  • trunk/src/VBox/Devices/PC/DevPcBios.h

    r9440 r9693  
    2323#define DEV_PCBIOS_H
    2424
    25 #define VBOX_DMI_TABLE_ENTR          3
    26 #define VBOX_DMI_TABLE_SIZE          0x100 /* XXX make this variable */
     25/** @def VBOX_DMI_TABLE_BASE */
    2726#define VBOX_DMI_TABLE_BASE          0xe1000
    2827#define VBOX_DMI_TABLE_VER           0x25
     28#define VBOX_DMI_TABLE_ENTR          3
     29#define VBOX_DMI_TABLE_SIZE          0x100
     30
     31
     32/** @def MPS_TABLE_BASE
     33 *
     34 * Must be located in the same page as the DMI table.
     35 */
     36#define VBOX_MPS_TABLE_BASE          0xe1100
    2937
    3038#define VBOX_SMBIOS_MAJOR_VER        2
     
    3240#define VBOX_SMBIOS_MAXSS            0xff   /* Not very accurate */
    3341
    34 #define VBOX_MPS_TABLE_BASE          0xe1100
    3542
     43/** @def VBOX_VMI_TABLE_BASE
     44 *
     45 * Must be located between 0xC0000 and 0xDEFFF, otherwise it will not be
     46 * recognized as regular BIOS.
     47 */
     48#define VBOX_VMI_BIOS_BASE           0xdf000
     49
     50
     51/** @def VBOX_LANBOOT_SEG
     52 */
    3653#define VBOX_LANBOOT_SEG             0xe200
    3754
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette