mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-31 01:24:12 +02:00
IntelTdx: Removed superfluous TdxSharedBitMask field in EFI_HOB_PLATFORM_INFO
This commit is contained in:
parent
8bce5dd9f0
commit
dc770393a3
@ -57,7 +57,6 @@ typedef struct {
|
||||
BOOLEAN QemuFwCfgDmaSupported;
|
||||
|
||||
UINT64 PteMemoryEncryptionAddressOrMask;
|
||||
UINT64 TdxSharedBitMask;
|
||||
UINT64 GhcbBase;
|
||||
} EFI_HOB_PLATFORM_INFO;
|
||||
#pragma pack()
|
||||
|
@ -52,7 +52,7 @@ IntelTdxInitialize (
|
||||
PcdStatus = PcdSet64S (PcdTdxSharedBitMask, PageMask);
|
||||
ASSERT_RETURN_ERROR (PcdStatus);
|
||||
|
||||
PlatformInfoHob->TdxSharedBitMask = PageMask;
|
||||
PlatformInfoHob->PcdTdxSharedBitMask = PageMask;
|
||||
|
||||
PcdStatus = PcdSetBoolS (PcdSetNxForStack, TRUE);
|
||||
ASSERT_RETURN_ERROR (PcdStatus);
|
||||
|
@ -310,7 +310,7 @@ GetPageTableEntry (
|
||||
//
|
||||
AddressEncMask = mPlatformInfoHob2->PteMemoryEncryptionAddressOrMask & PAGING_1G_ADDRESS_MASK_64;
|
||||
if (AddressEncMask == 0) {
|
||||
AddressEncMask = mPlatformInfoHob2->TdxSharedBitMask & PAGING_1G_ADDRESS_MASK_64;
|
||||
AddressEncMask = mPlatformInfoHob2->PcdTdxSharedBitMask & PAGING_1G_ADDRESS_MASK_64;
|
||||
}
|
||||
|
||||
if (PagingContext->MachineType == IMAGE_FILE_MACHINE_X64) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user