MCPcopy Create free account
hub / github.com/coreboot/coreboot / vboot_get_workbuf

Function vboot_get_workbuf

src/security/vboot/common.c:14–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12static struct vb2_context *vboot_ctx;
13
14static void *vboot_get_workbuf(void)
15{
16 void *wb = NULL;
17
18 if (ENV_HAS_CBMEM)
19 wb = cbmem_find(CBMEM_ID_VBOOT_WORKBUF);
20
21 if (!wb && !CONFIG(VBOOT_STARTS_IN_ROMSTAGE) && preram_symbols_available())
22 wb = _vboot2_work;
23
24 assert(wb);
25
26 return wb;
27}
28
29struct vb2_context *vboot_get_context(void)
30{

Callers 1

vboot_get_contextFunction · 0.85

Calls 2

preram_symbols_availableFunction · 0.85
cbmem_findFunction · 0.50

Tested by

no test coverage detected