3 #ifndef __VBOOT_MISC_H__
4 #define __VBOOT_MISC_H__
20 return !(ctx->flags & VB2_CONTEXT_FW_SLOT_B);
48 if (
CONFIG(VBOOT_SEPARATE_VERSTAGE))
50 else if (
CONFIG(VBOOT_STARTS_IN_ROMSTAGE))
52 else if (
CONFIG(VBOOT_STARTS_IN_BOOTBLOCK))
60 if (
CONFIG(VBOOT_SEPARATE_VERSTAGE) && !
CONFIG(VBOOT_STARTS_BEFORE_BOOTBLOCK))
77 if (
CONFIG(VBOOT_STARTS_IN_BOOTBLOCK)) {
80 }
else if (
CONFIG(VBOOT_STARTS_IN_ROMSTAGE)) {
83 }
else if (
CONFIG(VBOOT_STARTS_BEFORE_BOOTBLOCK)) {
static int vboot_is_firmware_slot_a(struct vb2_context *ctx)
struct vb2_context * vboot_get_context(void)
int vboot_locate_firmware(struct vb2_context *ctx, struct region_device *fw)
static int verstage_should_load(void)
static bool vboot_is_gbb_flag_set(enum vb2_gbb_flag flag)
static int verification_should_run(void)
static int vboot_logic_executed(void)
#define ENV_ROMSTAGE_OR_BEFORE
#define ENV_SEPARATE_VERSTAGE