VirtualBox

Changeset 25058 in vbox


Ignore:
Timestamp:
Nov 27, 2009 5:55:17 PM (15 years ago)
Author:
vboxsync
Message:

EFI: safe part of tables changes (rest to come after branch), required for ACPI work

Location:
trunk/src/VBox/Devices/PC
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/DevAPIC.cpp

    r24609 r25058  
    10321032                break;
    10331033            case APIC_DM_FIXED:
     1034            {
    10341035                /** @todo implement APIC_DM_FIXED! */
     1036                static unsigned s_c = 0;
     1037                if (s_c++ < 5)
     1038                    LogRel(("delivery type APIC_DM_FIXED not implemented. u8Pin=%d u8Level=%d", u8Pin, u8Level));
     1039                return  VINF_SUCCESS;
     1040            }
    10351041            case APIC_DM_INIT:
    10361042                /** @todo implement APIC_DM_INIT? */
  • trunk/src/VBox/Devices/PC/DevFwCommon.cpp

    r25048 r25058  
    6767    uint32_t        u32TableBase;
    6868    uint16_t        u16TableEntries;
    69     uint16_t        u8TableVersion;
    70     uint8_t         u8Pad;
     69    uint8_t         u8TableVersion;
    7170} *DMIMAINHDRPTR;
     71AssertCompileSize(DMIMAINHDR, 15);
    7272
    7373/** DMI header */
     
    269269    return -u8Sum;
    270270}
     271
     272static bool sharedfwChecksumOk(const uint8_t * const au8Data, uint32_t u32Length)
     273{
     274    uint8_t u8Sum = 0;
     275    for (size_t i = 0; i < u32Length; i++)
     276        u8Sum += au8Data[i];
     277    return (u8Sum == 0);
     278}
     279
    271280
    272281/**
     
    552561                VBOX_DMI_TABLE_ENTR,               // DMI tables entries
    553562                VBOX_DMI_TABLE_VER,                // DMI version
    554                 0x00
    555563            }
    556564        };
     
    559567        aBiosHeaders.dmi.u8Checksum = fwCommonChecksum((uint8_t*)&aBiosHeaders.dmi, sizeof(aBiosHeaders.dmi));
    560568
    561         //Log(("Write SMBIOS\n"));
    562         PDMDevHlpPhysWrite (pDevIns, 0xff30, &aBiosHeaders, sizeof(aBiosHeaders));
     569        PDMDevHlpPhysWrite (pDevIns, 0xfe300, &aBiosHeaders, sizeof(aBiosHeaders));
    563570    }
    564571
  • trunk/src/VBox/Devices/PC/DevFwCommon.h

    r25048 r25058  
    2929 * Must be located in the same page as the DMI table.
    3030 */
    31 #define VBOX_MPS_TABLE_BASE          0xe1100
     31#define VBOX_MPS_TABLE_BASE          (VBOX_DMI_TABLE_BASE+VBOX_DMI_TABLE_SIZE)
    3232
    3333/* Plant DMI table */
     
    3838
    3939#endif
    40 
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