VirtualBox

Changeset 42421 in vbox for trunk/src/VBox/Devices/EFI


Ignore:
Timestamp:
Jul 26, 2012 6:21:42 PM (12 years ago)
Author:
vboxsync
Message:

EFI/OVMF: protects 64Kb at end of system memory. no explicit HOB required for range 0xe0000, 0xe1000.

Location:
trunk/src/VBox/Devices/EFI/Firmware2/VBoxPkg/PlatformPei
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/Firmware2/VBoxPkg/PlatformPei/MemDetect.c

    r42405 r42421  
    135135    MemorySize = SIZE_64MB;
    136136  }
     137  MemorySize -= BASE_64KB; /* Reserves 64KB for ACPI tables. */
    137138
    138139  //
     
    147148  AddMemoryBaseSizeHob (MemoryBase, MemorySize);
    148149  AddMemoryRangeHob (BASE_1MB, MemoryBase);
     150  MtrrSetMemoryAttribute (BASE_1MB, MemoryBase + MemorySize - BASE_1MB, CacheWriteBack);
    149151  AddMemoryRangeHob (0, BASE_512KB + BASE_128KB);
     152  MtrrSetMemoryAttribute (0, BASE_512KB + BASE_128KB, CacheWriteBack);
    150153
    151   MtrrSetMemoryAttribute (BASE_1MB, MemoryBase + MemorySize - BASE_1MB, CacheWriteBack);
    152 
    153   MtrrSetMemoryAttribute (0, BASE_512KB + BASE_128KB, CacheWriteBack);
    154154
    155155  if (UpperMemorySize != 0) {
  • trunk/src/VBox/Devices/EFI/Firmware2/VBoxPkg/PlatformPei/Platform.c

    r42406 r42421  
    132132    );
    133133
    134   DEBUG (
    135       (EFI_D_ERROR, "ROM HOB: at 0x%llx size 0x%llx\n", MemoryBase, MemorySize)
    136     );
    137 
     134  DEBUG ((DEBUG_INFO, "ROM HOB: at 0x%llx size 0x%llx\n", MemoryBase, MemorySize));
    138135}
    139136
     
    277274  //
    278275  // Video memory + Legacy BIOS region
     276  // This includes ACPI floating pointer region.
    279277  //
    280278  AddIoMemoryRangeHob (0x0A0000, BASE_1MB);
     
    289287  ASSERT(AcpiTables != 0);
    290288
    291   // Floating pointer page
    292   AddRomMemoryBaseSizeHob(RsdPtr,      0x1000);
    293289  // ACPI tables 64 K
    294290  AddRomMemoryBaseSizeHob(AcpiTables, 0x10000);
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