coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <assert.h>
#include <cbmem.h>
#include <fmap.h>
#include <vb2_api.h>
#include <security/vboot/misc.h>
#include <security/vboot/symbols.h>
#include <security/vboot/vboot_common.h>
Go to the source code of this file.
Functions | |
static void * | vboot_get_workbuf (void) |
struct vb2_context * | vboot_get_context (void) |
int | vboot_locate_firmware (struct vb2_context *ctx, struct region_device *fw) |
static void | vboot_setup_cbmem (int unused) |
Variables | |
static struct vb2_context * | vboot_ctx |
struct vb2_context* vboot_get_context | ( | void | ) |
Definition at line 28 of file common.c.
References assert, vboot_ctx, vboot_get_workbuf(), vboot_logic_executed(), and verification_should_run().
Referenced by cse_get_source_rdev_fmap(), cse_trigger_vboot_recovery(), display_init_required(), do_clear_recovery_mode_switch(), Main(), psp_verstage_s0i3_resume(), vboot_check_recovery_request(), vboot_developer_mode_enabled(), vboot_get_cbfs_boot_device(), vboot_is_gbb_flag_set(), vboot_recovery_mode_enabled(), vboot_sync_ec(), and verstage_main().
Definition at line 13 of file common.c.
References assert, cbmem_find(), CBMEM_ID_VBOOT_WORKBUF, cbmem_possibly_online(), CONFIG, NULL, and preram_symbols_available().
Referenced by vboot_get_context().
int vboot_locate_firmware | ( | struct vb2_context * | ctx, |
struct region_device * | fw | ||
) |
Definition at line 53 of file common.c.
References fmap_locate_area_as_rdev(), name, rdev_chain(), and vboot_is_firmware_slot_a().
Referenced by vboot_get_cbfs_boot_device(), and verstage_main().
|
static |
Definition at line 70 of file common.c.
References assert, cbmem_add(), CBMEM_ID_VBOOT_WORKBUF, CONFIG, NULL, and vboot_ctx.
|
static |
Definition at line 11 of file common.c.
Referenced by vboot_get_context(), and vboot_setup_cbmem().