This patch belongs to the bug fix for SMM Profile Functionality.
The first patch is to enable the single-step debugging mode by setting the Trap Flag only after SmmProfile feature starts.
The second patch is to ensure that a Page Directory Entry (PDE) exists prior to its usage.
The third patch is to remove the assert check. The page table entry created will be the platform-specified PageSize granularity.
The fourth patch is to iterate page table to find proper entry.
How This Was Tested
Enable the SMM Profile feature on QSP. 1) Pass the boot. 2) Access the non-smram mem to check whether memory can be recorded by SMM profile.
SMM Profile Functionality Fix
This patch belongs to the bug fix for SMM Profile Functionality.
The first patch is to enable the single-step debugging mode by setting the Trap Flag only after SmmProfile feature starts. The second patch is to ensure that a Page Directory Entry (PDE) exists prior to its usage. The third patch is to remove the assert check. The page table entry created will be the platform-specified PageSize granularity. The fourth patch is to iterate page table to find proper entry.
How This Was Tested
Enable the SMM Profile feature on QSP. 1) Pass the boot. 2) Access the non-smram mem to check whether memory can be recorded by SMM profile.