soc/intel/meteorlake: Use CACHE_TMP_RAMTOP for TME exclusion range
This commit updates the fill_tme_params() function to utilize the CACHE_TMP_RAMTOP constant instead of hardcoded values for calculating the TME exclusion range. Change-Id: I199182de8b8b219b0c45b27746b7415527cb9976 Signed-off-by: Jeremy Compostella <jeremy.compostella@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/87868 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Subrata Banik <subratabanik@google.com>
This commit is contained in:
parent
394dfcaa7b
commit
c16891ecbd
1 changed files with 3 additions and 2 deletions
|
|
@ -7,6 +7,7 @@
|
|||
#include <cpu/intel/common/common.h>
|
||||
#include <cpu/intel/cpu_ids.h>
|
||||
#include <cpu/x86/msr.h>
|
||||
#include <cpu/x86/mtrr.h>
|
||||
#include <device/device.h>
|
||||
#include <device/pci.h>
|
||||
#include <drivers/wifi/generic/wifi.h>
|
||||
|
|
@ -202,8 +203,8 @@ static void fill_tme_params(FSP_M_CONFIG *m_cfg)
|
|||
"Full memory encryption is enabled.\n");
|
||||
return;
|
||||
}
|
||||
m_cfg->TmeExcludeBase = (ram_top - 16*MiB);
|
||||
m_cfg->TmeExcludeSize = 16*MiB;
|
||||
m_cfg->TmeExcludeBase = (ram_top - CACHE_TMP_RAMTOP);
|
||||
m_cfg->TmeExcludeSize = CACHE_TMP_RAMTOP;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue