Patch Set 1:

What does smell weird about that struct is that the 1 bit wide fields are signed integers while they should be unsigned integers

Generally one should avoid bit-fields when having to match with external spec. AFAIR it is not dictated in the standard that the first declared bit-field will consume LSB position. I was under impression that bit-fields would allocate minimum size of int but apparently, with packed attribute at least, only uint8_t is consumed here.

View Change

To view, visit change 41154. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I375ffec589cca8fe9d07dbe908c79348e863aa13
Gerrit-Change-Number: 41154
Gerrit-PatchSet: 1
Gerrit-Owner: Paul Menzel <paulepanter@users.sourceforge.net>
Gerrit-Reviewer: Felix Held <felix-coreboot@felixheld.de>
Gerrit-Reviewer: Marshall Dawson <marshalldawson3rd@gmail.com>
Gerrit-Reviewer: Martin Roth <martinroth@google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-CC: Kyösti Mälkki <kyosti.malkki@gmail.com>
Gerrit-Comment-Date: Fri, 08 May 2020 04:55:22 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Gerrit-MessageType: comment