47 assert(vb2api_init(wb, VB2_FIRMWARE_WORKBUF_RECOMMENDED_SIZE,
67 return rdev_chain(fw, fw, 0, vb2api_get_firmware_size(ctx));
73 const size_t cbmem_size = VB2_KERNEL_WORKBUF_RECOMMENDED_SIZE;
91 if (!
CONFIG(VBOOT_STARTS_IN_ROMSTAGE))
92 rv = vb2api_relocate(wb_cbmem, _vboot2_work, cbmem_size,
95 rv = vb2api_init(wb_cbmem, cbmem_size, &
vboot_ctx);
#define assert(statement)
static int cbmem_possibly_online(void)
void * cbmem_add(u32 id, u64 size)
void * cbmem_find(u32 id)
#define ROMSTAGE_CBMEM_INIT_HOOK(init_fn_)
#define CBMEM_ID_VBOOT_WORKBUF
int fmap_locate_area_as_rdev(const char *name, struct region_device *area)
static int preram_symbols_available(void)
static int vboot_is_firmware_slot_a(struct vb2_context *ctx)
static int verification_should_run(void)
static int vboot_logic_executed(void)
int rdev_chain(struct region_device *child, const struct region_device *parent, size_t offset, size_t size)
struct vb2_context * vboot_get_context(void)
int vboot_locate_firmware(struct vb2_context *ctx, struct region_device *fw)
static struct vb2_context * vboot_ctx
static void vboot_setup_cbmem(int unused)
static void * vboot_get_workbuf(void)