From a202aec5fdba27f1f8ec00f9b39007f7600acbb6 Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Wed, 3 Jun 2020 21:06:58 -0600 Subject: include: update cbmem_possibly_online for vboot_before_bootblock cbmem is not online when vboot runs before the bootblock. Update the macro to reflect that. BUG=b:158124527 TEST=Build & boot psp_verstage on trembyle Signed-off-by: Martin Roth Change-Id: I6fb4ad04f276f2358ab9d4d210fdc7a34a93a5bb Reviewed-on: https://review.coreboot.org/c/coreboot/+/42066 Tested-by: build bot (Jenkins) Reviewed-by: Raul Rangel --- src/include/cbmem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/include/cbmem.h b/src/include/cbmem.h index 96be108cd0..f88cfb7b7e 100644 --- a/src/include/cbmem.h +++ b/src/include/cbmem.h @@ -160,7 +160,7 @@ static inline int cbmem_possibly_online(void) if (ENV_BOOTBLOCK) return 0; - if (ENV_SEPARATE_VERSTAGE && CONFIG(VBOOT_STARTS_IN_BOOTBLOCK)) + if (ENV_SEPARATE_VERSTAGE && !CONFIG(VBOOT_STARTS_IN_ROMSTAGE)) return 0; return 1; -- cgit v1.2.3