summaryrefslogtreecommitdiff
path: root/src/soc
diff options
context:
space:
mode:
authorRonald G. Minnich <rminnich@gmail.com>2019-05-09 00:01:45 +0000
committerron minnich <rminnich@gmail.com>2019-05-09 14:59:39 +0000
commit24047fefdac1d5abc1298a0da20340dc3d7eda48 (patch)
tree78cc87cbedc1b87afe143aff40e40cbb3441eeb9 /src/soc
parent2eb89c8b1479876d37eef37eb4485e23956116e3 (diff)
Change the guard for bootblock_systemagent_early_init to ENV_BOOTBLOCK
The definition of bootblock_systemagent_early_init was guarded by !ENV_RAMSTAGE. But it's only called in the bootblock. So guard it with ENV_BOOTBLOCK instead. Change-Id: I143cf72e4a63b176e4772575e7a60a2a611e4ad9 Signed-off-by: Ronald G. Minnich <rminnich@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/32697 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Lijian Zhao <lijian.zhao@intel.com> Reviewed-by: Subrata Banik <subrata.banik@intel.com>
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/intel/common/block/systemagent/systemagent_early.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/intel/common/block/systemagent/systemagent_early.c b/src/soc/intel/common/block/systemagent/systemagent_early.c
index 61f14a935c..c12c64ab53 100644
--- a/src/soc/intel/common/block/systemagent/systemagent_early.c
+++ b/src/soc/intel/common/block/systemagent/systemagent_early.c
@@ -24,7 +24,7 @@
#include "systemagent_def.h"
-#if !ENV_RAMSTAGE
+#if ENV_BOOTBLOCK
void bootblock_systemagent_early_init(void)
{
uint32_t reg;