Changeset 62965 in vbox for trunk/src/VBox/Devices/EFI
- Timestamp:
- Aug 4, 2016 9:57:20 AM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 109568
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/DevEFI.cpp
r61621 r62965 54 54 55 55 /* EFI includes */ 56 #ifdef _MSC_VER 57 # pragma warning(push) 58 # pragma warning(disable:4668) 59 #endif 56 60 #include <ProcessorBind.h> 61 #ifdef _MSC_VER 62 # pragma warning(pop) 63 #endif 57 64 #include <Common/UefiBaseTypes.h> 58 65 #include <Common/PiFirmwareVolume.h> … … 1050 1057 static DECLCALLBACK(void) efiInfoNvram(PPDMDEVINS pDevIns, PCDBGFINFOHLP pHlp, const char *pszArgs) 1051 1058 { 1059 RT_NOREF(pszArgs); 1052 1060 PDEVEFI pThis = PDMINS_2_DATA(pDevIns, PDEVEFI); 1053 1061 PDMCritSectEnter(pDevIns->pCritSectRoR3, VERR_IGNORED); … … 1213 1221 RTStrmClose(pStrm); 1214 1222 } 1223 # else 1224 RT_NOREF(pThis, pszFormat); 1215 1225 # endif 1216 1226 } … … 1229 1239 static int efiPortImageEventWrite(PDEVEFI pThis, uint32_t u32, unsigned cb) 1230 1240 { 1241 RT_NOREF(cb); 1231 1242 switch (u32 & EFI_IMAGE_EVT_CMD_MASK) 1232 1243 { … … 1342 1353 static DECLCALLBACK(int) efiIOPortRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb) 1343 1354 { 1355 RT_NOREF(pvUser); 1344 1356 PDEVEFI pThis = PDMINS_2_DATA(pDevIns, PDEVEFI); 1345 1357 Log4(("EFI in: %x %x\n", Port, cb)); … … 1427 1439 static DECLCALLBACK(int) efiIOPortWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb) 1428 1440 { 1441 RT_NOREF(pvUser); 1429 1442 PDEVEFI pThis = PDMINS_2_DATA(pDevIns, PDEVEFI); 1430 1443 int rc = VINF_SUCCESS; … … 1769 1782 static DECLCALLBACK(void) efiMemSetup(PPDMDEVINS pDevIns, PDMDEVMEMSETUPCTX enmCtx) 1770 1783 { 1784 RT_NOREF(enmCtx); 1771 1785 PDEVEFI pThis = PDMINS_2_DATA(pDevIns, PDEVEFI); 1772 1786 … … 1954 1968 AssertLogRelMsgReturn(!(pThis->cbEfiRom & PAGE_OFFSET_MASK), ("%RX64\n", pThis->cbEfiRom), VERR_INVALID_PARAMETER); 1955 1969 1956 uint8_t const * const pbFwVolEnd = pThis->pu8EfiRom + pFwVolHdr->FvLength;1957 1970 pThis->GCLoadAddress = UINT32_C(0xfffff000) - pThis->cbEfiRom + PAGE_SIZE; 1958 1971 … … 1969 1982 static int efiLoadRom(PDEVEFI pThis, PCFGMNODE pCfg) 1970 1983 { 1984 RT_NOREF(pCfg); 1985 1971 1986 /* 1972 1987 * Read the entire firmware volume into memory. … … 2104 2119 static DECLCALLBACK(int) efiConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg) 2105 2120 { 2121 RT_NOREF(iInstance); 2122 PDMDEV_CHECK_VERSIONS_RETURN(pDevIns); 2106 2123 PDEVEFI pThis = PDMINS_2_DATA(pDevIns, PDEVEFI); 2107 2124 int rc; 2108 PDMDEV_CHECK_VERSIONS_RETURN(pDevIns);2109 2125 2110 2126 Assert(iInstance == 0);
Note:
See TracChangeset
for help on using the changeset viewer.