Joel Kitching has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/31329 )
Change subject: vboot: copy data structures to CBMEM for downstream use
......................................................................
Patch Set 5:
(1 comment)
https://review.coreboot.org/#/c/31329/3/src/security/vboot/common.c
File src/security/vboot/common.c:
https://review.coreboot.org/#/c/31329/3/src/security/vboot/common.c@44
PS3, Line 44: static uint8_t use_cbmem CAR_GLOBAL;
I thought it was a slightly simpler solution. […]
We could also just simplify and get rid of the global altogether:
struct vb2_working_data *vb2_wd;
if (vb2_wd == NULL && cbmem_possibly_online())
vb2_wd = cbmem_find(CBMEM_ID_VBOOT_WORKBUF);
if (vb2_wd == NULL && VBOOT_PRE_RAM_SYMBOLS &&
pre_ram_symbols_accessible())
vb2_wd = (struct vb2_working_data *)_vboot2_work;
assert(vb2_wd != NULL);
return vb2_wd;
--
To view, visit
https://review.coreboot.org/c/coreboot/+/31329
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I62c11268a83927bc00ae9bd93b1b31363b38e8cf
Gerrit-Change-Number: 31329
Gerrit-PatchSet: 5
Gerrit-Owner: Joel Kitching
kitching@google.com
Gerrit-Reviewer: Aaron Durbin
adurbin@chromium.org
Gerrit-Reviewer: Duncan Laurie
dlaurie@chromium.org
Gerrit-Reviewer: Joel Kitching
kitching@google.com
Gerrit-Reviewer: Julius Werner
jwerner@chromium.org
Gerrit-Reviewer: Randall Spangler
rspangler@google.com
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: Paul Menzel
paulepanter@users.sourceforge.net
Gerrit-Comment-Date: Tue, 19 Feb 2019 05:01:15 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Julius Werner
jwerner@chromium.org
Comment-In-Reply-To: Joel Kitching
kitching@google.com
Gerrit-MessageType: comment