Julius Werner has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/32262 )
Change subject: vboot: refactor OPROM code
......................................................................
Patch Set 7: Code-Review+2
(1 comment)
https://review.coreboot.org/#/c/32262/6/src/security/vboot/misc.h
File src/security/vboot/misc.h:
https://review.coreboot.org/#/c/32262/6/src/security/vboot/misc.h@40
PS6, Line 40: uint32_t buffer_size;
Okay, I see what you're saying. […]
I don't remember the exact rules in the standard, but for the compilers we use (GCC/clang) you can generally assume that they won't add padding as long as all members are already naturally aligned (and that's why we should always make sure that's the case in all serialized structures, adding explicit 'u8 reserved' members if needed... the other option is using __packed, but that comes bundled with some stupid other effects we don't want so it's better to avoid it where possible).
--
To view, visit
https://review.coreboot.org/c/coreboot/+/32262
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Idf111a533c3953448b4b9084885a9a65a2432a8b
Gerrit-Change-Number: 32262
Gerrit-PatchSet: 7
Gerrit-Owner: Joel Kitching
kitching@google.com
Gerrit-Reviewer: Aaron Durbin
adurbin@chromium.org
Gerrit-Reviewer: Joel Kitching
kitching@google.com
Gerrit-Reviewer: Julius Werner
jwerner@chromium.org
Gerrit-Reviewer: Patrick Rudolph
siro@das-labor.org
Gerrit-Reviewer: Paul Menzel
paulepanter@users.sourceforge.net
Gerrit-Reviewer: Randall Spangler
rspangler@google.com
Gerrit-Reviewer: Simon Glass
sjg@chromium.org
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-Comment-Date: Thu, 18 Apr 2019 22:08:46 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Julius Werner
jwerner@chromium.org
Comment-In-Reply-To: Joel Kitching
kitching@google.com
Gerrit-MessageType: comment