diff options
author | Joel Kitching <kitching@google.com> | 2019-03-13 22:38:07 +0800 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2019-03-15 12:59:29 +0000 |
commit | af8471c2b6062d387b03ed02b7481191488a2209 (patch) | |
tree | 0bfb4c992a7c8235eb4a0f115f82945b9921089a /src/security/vboot/vboot_logic.c | |
parent | 725369fd0cfb52c914c7c1afdb43b5b13072a16a (diff) | |
download | coreboot-af8471c2b6062d387b03ed02b7481191488a2209.tar.xz |
vboot: rename symbols for better consistency
Symbols prefixed with vb2_ should be reserved for internal
vboot library use.
Anything outside of that may choose some other prefix.
Here, we choose vboot_ instead.
Also, add some documentation to security/vboot/misc.h,
which provides headers for a number of different C files.
BUG=b:124141368
TEST=Build and deploy to eve
TEST=util/lint/checkpatch.pl -g origin/master..HEAD
TEST=util/abuild/abuild -B -e -y -c 50 -p none -x
TEST=make clean && make test-abuild
BRANCH=none
Change-Id: I5d9154fd2d5df25ee254bd5ce4a173afaa6588be
Signed-off-by: Joel Kitching <kitching@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/31886
Reviewed-by: Julius Werner <jwerner@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/security/vboot/vboot_logic.c')
-rw-r--r-- | src/security/vboot/vboot_logic.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/security/vboot/vboot_logic.c b/src/security/vboot/vboot_logic.c index d5bfa89191..0b5763bfe3 100644 --- a/src/security/vboot/vboot_logic.c +++ b/src/security/vboot/vboot_logic.c @@ -297,7 +297,7 @@ void verstage_main(void) timestamp_add_now(TS_START_VBOOT); /* Set up context and work buffer */ - vb2_init_work_context(&ctx); + vboot_init_work_context(&ctx); /* Initialize and read nvdata from non-volatile storage. */ vbnv_init(ctx.nvdata); @@ -437,7 +437,7 @@ void verstage_main(void) } printk(BIOS_INFO, "Slot %c is selected\n", is_slot_a(&ctx) ? 'A' : 'B'); - vb2_set_selected_region(region_device_region(&fw_main)); - vb2_finalize_work_context(&ctx); + vboot_set_selected_region(region_device_region(&fw_main)); + vboot_finalize_work_context(&ctx); timestamp_add_now(TS_END_VBOOT); } |