summaryrefslogtreecommitdiff
path: root/firmware/2lib/include/2return_codes.h
diff options
context:
space:
mode:
authorJoel Kitching <kitching@google.com>2019-07-25 18:26:18 +0800
committerCommit Bot <commit-bot@chromium.org>2019-11-13 06:14:05 +0000
commitecdca931ae0637d1a9498f64862939bd5bb99e0b (patch)
treefac935a23124d281c72b765333cedaca446bb1e4 /firmware/2lib/include/2return_codes.h
parent87276ffed46b3c64ff62153ac8599a79b9bcb683 (diff)
downloadvboot-ecdca931ae0637d1a9498f64862939bd5bb99e0b.tar.gz
vboot: move vb2_context inside vb2_shared_data (persistent context)
Move vb2_context to live inside of vb2_shared_data, instead of in a separate memory space allocated by the caller. See design doc: http://go/vboot2-persistent-context BUG=b:124141368, chromium:994060 TEST=make clean && make runtests BRANCH=none Change-Id: If2421756572a43ba58b9da9f00e56a8f26ad3ad5 Signed-off-by: Joel Kitching <kitching@google.com> Cq-Depend: chromium:1874753, chromium:1902339 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/1716351 Tested-by: Joel Kitching <kitching@chromium.org> Commit-Queue: Julius Werner <jwerner@chromium.org> Reviewed-by: Joel Kitching <kitching@chromium.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'firmware/2lib/include/2return_codes.h')
-rw-r--r--firmware/2lib/include/2return_codes.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/firmware/2lib/include/2return_codes.h b/firmware/2lib/include/2return_codes.h
index 49ee50ab..9f6a54cd 100644
--- a/firmware/2lib/include/2return_codes.h
+++ b/firmware/2lib/include/2return_codes.h
@@ -454,11 +454,11 @@ enum vb2_return_code {
*/
VB2_ERROR_MISC = VB2_ERROR_BASE + 0x080000,
- /* Work buffer too small in vb2_init_context() */
- VB2_ERROR_INITCTX_WORKBUF_SMALL,
+ /* Work buffer too small (see vb2api_init and vb2api_reinit) */
+ VB2_ERROR_WORKBUF_SMALL,
- /* Work buffer unaligned in vb2_init_context() */
- VB2_ERROR_INITCTX_WORKBUF_ALIGN,
+ /* Work buffer unaligned (see vb2api_init and vb2api_reinit) */
+ VB2_ERROR_WORKBUF_ALIGN,
/* Work buffer too small in GBB-related function */
VB2_ERROR_GBB_WORKBUF,
@@ -608,6 +608,9 @@ enum vb2_return_code {
/* Invalid parameter */
VB2_ERROR_INVALID_PARAMETER,
+ /* Problem with workbuf validity (see vb2api_init and vb2api_reinit) */
+ VB2_ERROR_WORKBUF_INVALID,
+
/**********************************************************************
* API-level errors
*/