Caveh Jalali has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/45939 )
Change subject: fw_config: Convert fw_config to a 64-bit field
......................................................................
Patch Set 2:
(2 comments)
https://review.coreboot.org/c/coreboot/+/45939/2/util/sconfig/main.c
File util/sconfig/main.c:
https://review.coreboot.org/c/coreboot/+/45939/2/util/sconfig/main.c@406
PS2, Line 406: /* Check that field is within 64 bits. */
do we need to limit field width to 32 bits?
what about fields spanning the 32 bit boundary?
https://review.coreboot.org/c/coreboot/+/45939/2/util/sconfig/main.c@554
PS2, Line 554: (uint64_t)(option->value << (uint64_t)field->start_bit)
hmm... looks like you're casting to uint64_t after the bits are truncated:
(uint64_t)option->value << field->start_bit
--
To view, visit
https://review.coreboot.org/c/coreboot/+/45939
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I6f2065d347eafa0ef7b346caeabdc3b626402092
Gerrit-Change-Number: 45939
Gerrit-PatchSet: 2
Gerrit-Owner: Tim Wawrzynczak
twawrzynczak@chromium.org
Gerrit-Reviewer: Caveh Jalali
caveh@chromium.org
Gerrit-Reviewer: Duncan Laurie
dlaurie@chromium.org
Gerrit-Reviewer: Furquan Shaikh
furquan@google.com
Gerrit-Reviewer: Julius Werner
jwerner@chromium.org
Gerrit-Reviewer: Karthik Ramasubramanian
kramasub@google.com
Gerrit-Reviewer: Martin Roth
martinroth@google.com
Gerrit-Reviewer: Nick Vaccaro
nvaccaro@google.com
Gerrit-Reviewer: Patrick Georgi
pgeorgi@google.com
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-Comment-Date: Fri, 02 Oct 2020 11:05:27 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment