summaryrefslogtreecommitdiffstats
path: root/ArmPkg/Drivers/ArmScmiDxe
diff options
context:
space:
mode:
authorArd Biesheuvel <ardb@kernel.org>2023-02-06 19:29:09 +0100
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2023-03-16 21:14:49 +0000
commit699372d388a796441d938dba4fdb6525b69ea250 (patch)
tree0f7afebf130d953f6ef8b8e51c8cdaaaa18f1944 /ArmPkg/Drivers/ArmScmiDxe
parent3b76284883df833170f741c9fb4037579635b7f2 (diff)
downloadedk2-699372d388a796441d938dba4fdb6525b69ea250.tar.gz
edk2-699372d388a796441d938dba4fdb6525b69ea250.tar.bz2
edk2-699372d388a796441d938dba4fdb6525b69ea250.zip
ArmPkg/CpuDxe ARM: Fix page-to-section attribute conversion
The section-to-page attribute conversion takes the shareability and execute-never attributes into account, whereas the page-to-section counterpart does not. The result is that GetMemoryRegionPage () -which takes a section attribute argument (via *RegionAttributes) that is ostensibly based on the first page in the range, but differs from the actual page attributes when converted back- may return with a RegionLength of zero. This is incorrect, and confuses code that scans a region by calling GetMemoryRegion () in sequence. So fix the conversion, and ASSERT () on a non-zero region length. Signed-off-by: Ard Biesheuvel <ardb@kernel.org> Reviewed-by: Leif Lindholm <quic_llindhol@quicinc.com>
Diffstat (limited to 'ArmPkg/Drivers/ArmScmiDxe')
0 files changed, 0 insertions, 0 deletions