microsoft / mu_basecore

Project Mu BaseCore
https://microsoft.github.io/mu/
Other
242 stars 124 forks source link

MdeModulePkg/Core/Dxe/Gcd/Gcd.c: Add EFI_RESOURCE_ATTRIBUTE_SPECIAL_PURPOSE attribute. [Merge & FF] #998

Closed apop5 closed 3 months ago

apop5 commented 3 months ago

Description

Add the EFI_RESOURCE_ATTRIBUTE_SPECIAL_PURPOSE resource attribute as per the PI 1.8 spec. This flag is used to indicate that the memory should be treated as special purpose memory (SPM).

Also adds GCD code that marks the SPM with the EFI_MEMORY_SP bit and sets the GCD memory type to EfiGcdMemoryTypeSystemMemory.

Cherry-Pick the following from EDK2:

de2330450

Cherry-Pick the following from mu_basecore:

b324d9621a

How This Was Tested

N/A

Integration Instructions

N/A

codecov-commenter commented 3 months ago

Codecov Report

Attention: Patch coverage is 0% with 13 lines in your changes missing coverage. Please review.

Please upload report for BASE (release/202405@36cb0df). Learn more about missing BASE report.

Files Patch % Lines
MdeModulePkg/Core/Dxe/Gcd/Gcd.c 0.00% 13 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## release/202405 #998 +/- ## ================================================= Coverage ? 0.20% ================================================= Files ? 628 Lines ? 218363 Branches ? 326 ================================================= Hits ? 448 Misses ? 217906 Partials ? 9 ``` | [Flag](https://app.codecov.io/gh/microsoft/mu_basecore/pull/998/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=microsoft) | Coverage Δ | | |---|---|---| | [MdeModulePkg](https://app.codecov.io/gh/microsoft/mu_basecore/pull/998/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=microsoft) | `0.20% <0.00%> (?)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=microsoft#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.