Changeset 58466 in vbox for trunk/src/VBox/Devices/EFI/Firmware/OvmfPkg/AcpiS3SaveDxe
- Timestamp:
- Oct 29, 2015 4:30:44 AM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 103777
- Location:
- trunk/src/VBox/Devices/EFI/Firmware
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/Firmware
- Property svn:mergeinfo changed
/vendor/edk2/current merged: 103769-103776
- Property svn:mergeinfo changed
-
trunk/src/VBox/Devices/EFI/Firmware/OvmfPkg/AcpiS3SaveDxe/AcpiS3Save.c
r58464 r58466 55 55 @param MemoryType Memory type of memory to allocate. 56 56 @param Size Size of memory to allocate. 57 57 58 58 @return Allocated address for output. 59 59 … … 113 113 114 114 EntryCount = (Rsdt->Length - sizeof (EFI_ACPI_DESCRIPTION_HEADER)) / sizeof(UINT32); 115 115 116 116 EntryPtr = (UINT32 *)(Rsdt + 1); 117 117 for (Index = 0; Index < EntryCount; Index ++, EntryPtr ++) { … … 121 121 } 122 122 } 123 123 124 124 return NULL; 125 125 } … … 152 152 153 153 EntryCount = (Xsdt->Length - sizeof (EFI_ACPI_DESCRIPTION_HEADER)) / sizeof(UINT64); 154 154 155 155 BasePtr = (UINTN)(Xsdt + 1); 156 156 for (Index = 0; Index < EntryCount; Index ++) { … … 161 161 } 162 162 } 163 163 164 164 return NULL; 165 165 } … … 169 169 170 170 @param Fadt FADT table pointer 171 171 172 172 @return Facs table pointer. 173 173 **/ … … 199 199 /** 200 200 To find Facs in Acpi tables. 201 202 To find Firmware ACPI control strutcure in Acpi Tables since the S3 waking vector is stored 201 202 To find Firmware ACPI control strutcure in Acpi Tables since the S3 waking vector is stored 203 203 in the table. 204 204 205 205 @param AcpiTableGuid The guid used to find ACPI table in UEFI ConfigurationTable. 206 206 207 207 @return Facs table pointer. 208 208 **/ … … 268 268 /** 269 269 To find Facs in Acpi tables. 270 271 To find Firmware ACPI control strutcure in Acpi Tables since the S3 waking vector is stored 270 271 To find Firmware ACPI control strutcure in Acpi Tables since the S3 waking vector is stored 272 272 in the table. 273 273 274 274 @return Facs table pointer. 275 275 **/ … … 292 292 Allocates and fills in the Page Directory and Page Table Entries to 293 293 establish a 1:1 Virtual to Physical mapping. 294 If BootScriptExector driver will run in 64-bit mode, this function will establish the 1:1 294 If BootScriptExector driver will run in 64-bit mode, this function will establish the 1:1 295 295 virtual to physical mapping page table. 296 If BootScriptExector driver will not run in 64-bit mode, this function will do nothing. 297 298 @return the 1:1 Virtual to Physical identity mapping page table base address. 296 If BootScriptExector driver will not run in 64-bit mode, this function will do nothing. 297 298 @return the 1:1 Virtual to Physical identity mapping page table base address. 299 299 300 300 **/ … … 303 303 VOID 304 304 ) 305 { 305 { 306 306 if (FeaturePcdGet (PcdDxeIplSwitchToLongMode)) { 307 307 UINT32 RegEax; … … 341 341 } 342 342 } 343 343 344 344 // 345 345 // IA-32e paging translates 48-bit linear addresses to 52-bit physical addresses. … … 381 381 // If DXE is running 32-bit mode, no need to establish page table. 382 382 // 383 return (EFI_PHYSICAL_ADDRESS) 0; 384 } 385 } 386 387 /** 388 Gets the buffer of legacy memory below 1 MB 383 return (EFI_PHYSICAL_ADDRESS) 0; 384 } 385 } 386 387 /** 388 Gets the buffer of legacy memory below 1 MB 389 389 This function is to get the buffer in legacy memory below 1MB that is required during S3 resume. 390 390 … … 455 455 /** 456 456 Prepares all information that is needed in the S3 resume boot path. 457 458 Allocate the resources or prepare informations and save in ACPI variable set for S3 resume boot path 459 457 458 Allocate the resources or prepare informations and save in ACPI variable set for S3 resume boot path 459 460 460 @param This A pointer to the EFI_ACPI_S3_SAVE_PROTOCOL instance. 461 461 @param LegacyMemoryAddress The base address of legacy memory. … … 568 568 /** 569 569 The Driver Entry Point. 570 570 571 571 The function is the driver Entry point which will produce AcpiS3SaveProtocol. 572 572 573 573 @param ImageHandle A handle for the image that is initializing this driver 574 574 @param SystemTable A pointer to the EFI system table -
trunk/src/VBox/Devices/EFI/Firmware/OvmfPkg/AcpiS3SaveDxe/AcpiS3Save.h
r58464 r58466 1 1 /** @file 2 This is an implementation of the ACPI S3 Save protocol. This is defined in 2 This is an implementation of the ACPI S3 Save protocol. This is defined in 3 3 S3 boot path specification 0.9. 4 4 … … 20 20 21 21 /** 22 Gets the buffer of legacy memory below 1 MB 22 Gets the buffer of legacy memory below 1 MB 23 23 This function is to get the buffer in legacy memory below 1MB that is required during S3 resume. 24 24 … … 39 39 /** 40 40 Prepares all information that is needed in the S3 resume boot path. 41 42 Allocate the resources or prepare informations and save in ACPI variable set for S3 resume boot path 43 41 42 Allocate the resources or prepare informations and save in ACPI variable set for S3 resume boot path 43 44 44 @param This A pointer to the EFI_ACPI_S3_SAVE_PROTOCOL instance. 45 45 @param LegacyMemoryAddress The base address of legacy memory. … … 55 55 S3Ready ( 56 56 IN EFI_ACPI_S3_SAVE_PROTOCOL *This, 57 IN VOID *LegacyMemoryAddress 57 IN VOID *LegacyMemoryAddress 58 58 ); 59 59 #endif
Note:
See TracChangeset
for help on using the changeset viewer.