mirror of https://github.com/acidanthera/audk.git
e8c23d1e27
The struct used for GHCB-based page-state change requests uses a 40-bit
bit-field for the GFN, which is shifted by PAGE_SHIFT to generate a
64-bit address. However, anything beyond 40-bits simply gets shifted off
when doing this, which will cause issues when dealing with 1TB+
addresses. Fix this by casting the 40-bit GFN values to 64-bit ones
prior to shifting it by PAGE_SHIFT.
Fixes:
|
||
---|---|---|
.. | ||
Ia32 | ||
X64 | ||
DxeMemEncryptSevLib.inf | ||
DxeMemEncryptSevLibInternal.c | ||
PeiDxeMemEncryptSevLibInternal.c | ||
PeiMemEncryptSevLib.inf | ||
PeiMemEncryptSevLibInternal.c | ||
SecMemEncryptSevLib.inf | ||
SecMemEncryptSevLibInternal.c |