diff options
author | Oliver Smith-Denny <osde@microsoft.com> | 2025-04-30 13:02:27 -0700 |
---|---|---|
committer | Liming Gao <gaoliming@byosoft.com.cn> | 2025-05-07 11:27:20 +0800 |
commit | 867fad874a019b629ee55aff2b0ef9af0fe1358c (patch) | |
tree | 20edd19d99c98c2e48ee99677519e82f5aea3afe /BaseTools/Plugin/DebugMacroCheck/tests/DebugMacroDataSet.py | |
parent | 28653a1c8a0c42bd598ba2677fc1b84fbb4e9c37 (diff) | |
download | edk2-867fad874a019b629ee55aff2b0ef9af0fe1358c.tar.gz edk2-867fad874a019b629ee55aff2b0ef9af0fe1358c.tar.bz2 edk2-867fad874a019b629ee55aff2b0ef9af0fe1358c.zip |
MdeModulePkg: Fix Image Memory Protection Applying
Commit 5ccb5fff02a66b21898bd57f48bbd7c3cd6f4e8d updated the
image memory protection code to set the protection
attributes through the GCD instead of directly to the page
table. However, this code had an implicit assumption that
each base address passed to it was the beginning of a GCD
descriptor. On the virtual platforms tested, this was the case.
However, on a physical platform, a scenario was encountered
where the base address was not the beginning of a GCD
descriptor, thus causing memory attributes to be applied
incorrectly.
This assumption does not need to be made and this patch
updates the code to handle the case where the base address
is not the beginning of a GCD descriptor.
Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
Diffstat (limited to 'BaseTools/Plugin/DebugMacroCheck/tests/DebugMacroDataSet.py')
0 files changed, 0 insertions, 0 deletions