Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Issue 2799019: Modify the size of the attributes field to comply with msc limitations. (Closed)

Created:
10 years, 6 months ago by vb
Modified:
9 years, 6 months ago
CC:
chromium-os-reviews_chromium.org
Base URL:
ssh://git@chromiumos-git/vboot_reference.git
Visibility:
Public.

Description

Reduce attributes size to comply with msc limitations. It turned out that shared verified boot library fails to work properly when compiled by msc in BIOS environment. The culprit was identified as failing 64 bit logical operations by preprocessor. It is probably possible to come up with a certain compile flag set to fix the operations, but it is not easy to modify and control the BIOS compilation environment. The alternative solution is to limit the size of the field in question to 16 bits (especially since this is the only part of the attributes field which is supposed to be altered by firmware. A union is being introduced in firmware/lib/cgptlib/include/gpt.h:GptEntry to allow accessing the field both as a 64 bit entity and a top 16 bit field. All places where this field is used are being modified appropriately. tests/Makefile is being fixed to allow controlling test run from the top level directory. Tested by building everything and running tests. All tests pass.

Patch Set 1 : Fix the attribute field to allow compilation in the BIOS environment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -61 lines) Patch
M cgpt/cgpt_common.c View 3 chunks +11 lines, -11 lines 0 comments Download
M cgpt/cmd_add.c View 2 chunks +2 lines, -2 lines 0 comments Download
M cgpt/cmd_show.c View 3 chunks +11 lines, -8 lines 0 comments Download
M firmware/lib/cgptlib/cgptlib.c View 3 chunks +6 lines, -5 lines 0 comments Download
M firmware/lib/cgptlib/cgptlib_internal.c View 1 chunk +12 lines, -12 lines 0 comments Download
M firmware/lib/cgptlib/include/cgptlib_internal.h View 1 chunk +3 lines, -3 lines 0 comments Download
M firmware/lib/cgptlib/include/gpt.h View 1 chunk +7 lines, -1 line 0 comments Download
M tests/Makefile View 2 chunks +4 lines, -5 lines 0 comments Download
M tests/cgptlib_test.c View 1 chunk +14 lines, -14 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
vb
10 years, 6 months ago (2010-06-19 01:37:06 UTC) #1
Bill Richardson
I didn't think about it earlier when we were talking about it, but if the ...
10 years, 6 months ago (2010-06-19 09:15:48 UTC) #2
vb
On Sat, Jun 19, 2010 at 2:15 AM, <wfrichar@chromium.org> wrote: > I didn't think about ...
10 years, 6 months ago (2010-06-19 17:32:45 UTC) #3
Randall Spangler
Kelly and I tried defining the mask as Bill suggests, but MSVC was still unhappy ...
10 years, 6 months ago (2010-06-19 18:46:18 UTC) #4
Randall Spangler
10 years, 6 months ago (2010-06-21 15:27:53 UTC) #5
LGTM

Powered by Google App Engine
This is Rietveld 408576698