Changeset 26109 in vbox for trunk/src/VBox/Devices/EFI
- Timestamp:
- Jan 31, 2010 10:29:08 AM (15 years ago)
- Location:
- trunk/src/VBox/Devices/EFI
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/DevEFI.cpp
r25790 r26109 107 107 /** I/O-APIC enabled? */ 108 108 uint8_t u8IOAPIC; 109 110 /* Boot parameters passed to the firmware */ 111 char pszBootArgs[256]; 109 112 } DEVEFI; 110 113 typedef DEVEFI *PDEVEFI; … … 126 129 static uint32_t efiInfoSize(PDEVEFI pThis) 127 130 { 128 /* So far, everything is 4 bytes, as we only support 32-bit EFI */129 131 switch (pThis->iInfoSelector) 130 132 { … … 136 138 case EFI_INFO_INDEX_STACK_SIZE: 137 139 return 4; 140 case EFI_INFO_INDEX_BOOT_ARGS: 141 return RTStrNLen(pThis->pszBootArgs, sizeof pThis->pszBootArgs) + 1; 138 142 } 139 143 Assert(false); … … 165 169 iValue = 128*1024; /* 128 K */ 166 170 break; 171 case EFI_INFO_INDEX_BOOT_ARGS: 172 return pThis->pszBootArgs[pThis->iInfoPosition]; 167 173 default: 168 174 Assert(false); … … 893 899 #endif 894 900 "64BitEntry\0" 901 "BootArgs\0" 895 902 )) 896 903 return PDMDEV_SET_ERROR(pDevIns, VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES, … … 964 971 pThis->pszEfiRomFile = NULL; 965 972 } 973 974 /* 975 * Get boot args. 976 */ 977 rc = CFGMR3QueryString(pCfgHandle, "BootArgs", 978 pThis->pszBootArgs, sizeof pThis->pszBootArgs); 979 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 980 { 981 strcpy(pThis->pszBootArgs, ""); 982 rc = VINF_SUCCESS; 983 } 984 if (RT_FAILURE(rc)) 985 return PDMDevHlpVMSetError(pDevIns, rc, RT_SRC_POS, 986 N_("Configuration error: Querying \"BootArgs\" as a string failed")); 987 988 LogRel(("EFI boot args: %s\n", pThis->pszBootArgs)); 966 989 967 990 #ifdef DEVEFI_WITH_VBOXDBG_SCRIPT -
trunk/src/VBox/Devices/EFI/Firmware2/VBoxPkg/Include/DevEFI.h
r24798 r26109 54 54 EFI_INFO_INDEX_STACK_BASE, 55 55 EFI_INFO_INDEX_STACK_SIZE, 56 EFI_INFO_INDEX_BOOT_ARGS, 56 57 EFI_INFO_INDEX_END 57 58 } EfiInfoIndex; … … 143 144 144 145 #endif 145
Note:
See TracChangeset
for help on using the changeset viewer.