Skip to content

Commit

Permalink
Publishing resource descriptor hob v2 (#331)
Browse files Browse the repository at this point in the history
## Description

This change is to use the new interface for resource descriptor hob v2
publication.

This is specifically needed for propagating the needed cache attributes
if the DXE phare were to re-create the page table from scratch.

For details on how to complete these options and their meaning refer to
[CONTRIBUTING.md](https://github.com/microsoft/mu/blob/HEAD/CONTRIBUTING.md).

- [x] Impacts functionality?
- [ ] Impacts security?
- [ ] Breaking change?
- [ ] Includes tests?
- [ ] Includes documentation?
- [ ] Backport to release branch?

## How This Was Tested

This was tested on QEMU SBSA platform.

## Integration Instructions

N/A

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
kuqin12 and dependabot[bot] authored Jan 25, 2025
1 parent bba6299 commit 5bac291
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .pytool/CISettings.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,12 @@ def GetDependencies(self):
{
"Path": "Common/MU_TIANO",
"Url": "https://github.com/microsoft/mu_tiano_plus.git",
"Branch": "release/202405"
"Branch": "dev/202405"
},
{
"Path": "MU_BASECORE",
"Url": "https://github.com/microsoft/mu_basecore.git",
"Branch": "release/202405"
"Branch": "dev/202405"
}
]

Expand Down
7 changes: 5 additions & 2 deletions ArmPlatformPkg/MemoryInitPei/MemoryInitPeiLib.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
**/

#include <PiPei.h>
#include <Uefi/UefiSpec.h>

#include <Library/ArmMmuLib.h>
#include <Library/ArmPlatformLib.h>
Expand Down Expand Up @@ -107,11 +108,13 @@ MemoryPeim (

if (!Found) {
// Reserved the memory space occupied by the firmware volume
BuildResourceDescriptorHob (
BuildResourceDescriptorV2 (
EFI_RESOURCE_SYSTEM_MEMORY,
ResourceAttributes,
PcdGet64 (PcdSystemMemoryBase),
PcdGet64 (PcdSystemMemorySize)
PcdGet64 (PcdSystemMemorySize),
EFI_MEMORY_WB,
NULL
);
}

Expand Down

0 comments on commit 5bac291

Please sign in to comment.