This patch series: 1. Updates applies uncrustify to noncompliant files 2. Updates GetMemoryRegion() to handle the case where BaseAddress is an unmapped page, and update some other return values to be more consistent. 3. Adds some branching paths to what were previously only ASSERT statements to avoid dereferencing NULL and producing non-deterministic behavior when ASSERTs are disabled. 4. Adds function headers to the MMU logic documenting the behavior, parameters, and potetial return values.
Taylor Beebe (4): ArmPkg: Apply Uncrustify to Non-Compliant Files ArmPkg: Update GetMemoryRegion() to Handle No mapping ArmPkg: Fix Unsafe ASSERTs in MMU Logic ArmPkg: Add Function Headers to MMU Logic Cc: Leif Lindholm <quic_llind...@quicinc.com> Cc: Ard Biesheuvel <ardb+tianoc...@kernel.org> ArmPkg/Drivers/CpuDxe/AArch64/Mmu.c | 143 ++++++++++++-- ArmPkg/Drivers/CpuDxe/Arm/Mmu.c | 187 ++++++++++++++---- .../MmCommunicationPei/MmCommunicationPei.c | 6 +- ArmPkg/Include/IndustryStandard/ArmStdSmc.h | 8 +- 4 files changed, 281 insertions(+), 63 deletions(-) -- 2.41.0.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#106517): https://edk2.groups.io/g/devel/message/106517 Mute This Topic: https://groups.io/mt/99854259/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-