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:
Jeremy Compostella 2025-05-27 08:59:39 -07:00 committed by Matt DeVillier
commit c16891ecbd

View file

@ -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;
}
}