Changeset 26173 in vbox for trunk/src/VBox/Devices/EFI/DevEFI.cpp
- Timestamp:
- Feb 2, 2010 9:11:09 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/DevEFI.cpp
r26172 r26173 710 710 * @returns VBox status. 711 711 * @param pThis The device instance data. 712 * @param pCfg HandleConfiguration node handle for the device.713 */ 714 static int efiLoadRom(PDEVEFI pThis, PCFGMNODE pCfg Handle)712 * @param pCfg Configuration node handle for the device. 713 */ 714 static int efiLoadRom(PDEVEFI pThis, PCFGMNODE pCfg) 715 715 { 716 716 /* … … 791 791 * @returns VBox status code. 792 792 * @param pThis The device instance data. 793 * @param pCfg HandleConfiguration node handle for the device.794 */ 795 static int efiLoadThunk(PDEVEFI pThis, PCFGMNODE pCfg Handle)793 * @param pCfg Configuration node handle for the device. 794 */ 795 static int efiLoadThunk(PDEVEFI pThis, PCFGMNODE pCfg) 796 796 { 797 797 uint8_t f64BitEntry = 0; 798 798 int rc; 799 799 800 rc = CFGMR3QueryU8Def(pCfg Handle, "64BitEntry", &f64BitEntry, 0);800 rc = CFGMR3QueryU8Def(pCfg, "64BitEntry", &f64BitEntry, 0); 801 801 if (RT_FAILURE (rc)) 802 802 return PDMDEV_SET_ERROR(pThis->pDevIns, rc, … … 864 864 * @interface_method_impl{PDMDEVREG,pfnConstruct} 865 865 */ 866 static DECLCALLBACK(int) efiConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg Handle)866 static DECLCALLBACK(int) efiConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg) 867 867 { 868 868 PDEVEFI pThis = PDMINS_2_DATA(pDevIns, PDEVEFI); … … 876 876 * Validate and read the configuration. 877 877 */ 878 if (!CFGMR3AreValuesValid(pCfg Handle,878 if (!CFGMR3AreValuesValid(pCfg, 879 879 "EfiRom\0" 880 880 "RamSize\0" … … 911 911 912 912 /* CPU count (optional). */ 913 rc = CFGMR3QueryU32Def(pCfg Handle, "NumCPUs", &pThis->cCpus, 1);913 rc = CFGMR3QueryU32Def(pCfg, "NumCPUs", &pThis->cCpus, 1); 914 914 AssertLogRelRCReturn(rc, rc); 915 915 916 rc = CFGMR3QueryU8Def(pCfg Handle, "IOAPIC", &pThis->u8IOAPIC, 1);916 rc = CFGMR3QueryU8Def(pCfg, "IOAPIC", &pThis->u8IOAPIC, 1); 917 917 if (RT_FAILURE (rc)) 918 918 return PDMDEV_SET_ERROR(pDevIns, rc, … … 923 923 */ 924 924 RTUUID uuid; 925 rc = CFGMR3QueryBytes(pCfg Handle, "UUID", &uuid, sizeof(uuid));925 rc = CFGMR3QueryBytes(pCfg, "UUID", &uuid, sizeof(uuid)); 926 926 if (RT_FAILURE(rc)) 927 927 return PDMDEV_SET_ERROR(pDevIns, rc, … … 936 936 937 937 /* RAM sizes */ 938 rc = CFGMR3QueryU64(pCfg Handle, "RamSize", &pThis->cbRam);938 rc = CFGMR3QueryU64(pCfg, "RamSize", &pThis->cbRam); 939 939 AssertLogRelRCReturn(rc, rc); 940 rc = CFGMR3QueryU64(pCfg Handle, "RamHoleSize", &pThis->cbRamHole);940 rc = CFGMR3QueryU64(pCfg, "RamHoleSize", &pThis->cbRamHole); 941 941 AssertLogRelRCReturn(rc, rc); 942 942 pThis->cbBelow4GB = RT_MIN(pThis->cbRam, _4G - pThis->cbRamHole); … … 947 947 * Get the system EFI ROM file name. 948 948 */ 949 rc = CFGMR3QueryStringAlloc(pCfg Handle, "EfiRom", &pThis->pszEfiRomFile);949 rc = CFGMR3QueryStringAlloc(pCfg, "EfiRom", &pThis->pszEfiRomFile); 950 950 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 951 951 { … … 973 973 * Get boot args. 974 974 */ 975 rc = CFGMR3QueryString(pCfg Handle, "BootArgs",975 rc = CFGMR3QueryString(pCfg, "BootArgs", 976 976 pThis->pszBootArgs, sizeof pThis->pszBootArgs); 977 977 if (rc == VERR_CFGM_VALUE_NOT_FOUND) … … 996 996 * Load firmware volume and thunk ROM. 997 997 */ 998 rc = efiLoadRom(pThis, pCfg Handle);998 rc = efiLoadRom(pThis, pCfg); 999 999 if (RT_FAILURE(rc)) 1000 1000 return rc; 1001 1001 1002 rc = efiLoadThunk(pThis, pCfg Handle);1002 rc = efiLoadThunk(pThis, pCfg); 1003 1003 if (RT_FAILURE(rc)) 1004 1004 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.