mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
UefiCpuPkg/ArmMmuLib: Drop IPA width in ArmCcaSetMemoryProtectionAttribute
ArmCcaSetMemoryProtectionAttribute() now derives the Realm CCA protection attribute internally using ArmCcaGetProtectionAttributeMask(), so callers no longer need to pass the Realm IPA width. Drop the IPA width parameter from the API and update callers accordingly. Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
This commit is contained in:
parent
8d7cd6fb23
commit
4555ef3c4b
2 changed files with 1 additions and 5 deletions
|
|
@ -113,7 +113,6 @@ ArmLpa2Enabled (
|
|||
|
||||
@param [in] BaseAddress Base address of the memory region.
|
||||
@param [in] Length Length of the memory region.
|
||||
@param [in] IpaWidth IPA width of the Realm.
|
||||
@param [in] Share If TRUE, set the most significant
|
||||
bit of the IPA to configure the memory
|
||||
region as Unprotected IPA.
|
||||
|
|
@ -130,7 +129,6 @@ EFIAPI
|
|||
ArmCcaSetMemoryProtectionAttribute (
|
||||
IN EFI_PHYSICAL_ADDRESS BaseAddress,
|
||||
IN UINT64 Length,
|
||||
IN UINT64 IpaWidth,
|
||||
IN BOOLEAN Share
|
||||
);
|
||||
|
||||
|
|
|
|||
|
|
@ -1072,7 +1072,6 @@ ArmCcaGetMemoryProtectionAttribute (
|
|||
|
||||
@param [in] BaseAddress Base address of the memory region.
|
||||
@param [in] Length Length of the memory region.
|
||||
@param [in] IpaWidth IPA width of the Realm.
|
||||
@param [in] Share If TRUE, set the most significant
|
||||
bit of the IPA to configure the memory
|
||||
region as Unprotected IPA.
|
||||
|
|
@ -1089,7 +1088,6 @@ EFIAPI
|
|||
ArmCcaSetMemoryProtectionAttribute (
|
||||
IN EFI_PHYSICAL_ADDRESS BaseAddress,
|
||||
IN UINT64 Length,
|
||||
IN UINT64 IpaWidth,
|
||||
IN BOOLEAN Share
|
||||
)
|
||||
{
|
||||
|
|
@ -1098,7 +1096,7 @@ ArmCcaSetMemoryProtectionAttribute (
|
|||
UINT64 Mask;
|
||||
UINT64 CcaProtectionAttribute;
|
||||
|
||||
if ((Length == 0) || (IpaWidth == 0) ||
|
||||
if ((Length == 0) ||
|
||||
!IS_ALIGNED (Length, EFI_PAGE_SIZE) ||
|
||||
!IS_ALIGNED (BaseAddress, EFI_PAGE_SIZE))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue