mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-25 10:45:02 +00:00
vboot: GPT interface cleanup
- Rename drive_sectors to streaming_drive_sectors, to contrast with gpt_drive_sectors - Replace stored_on_device field with flags field for future extensibility BUG=chromium:433433 TEST=make runtests BRANCH=none Change-Id: I785a3b735b8eb96f647a334659329db3ee43eb80 Signed-off-by: Dan Ehrenberg <dehrenberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/234283 Reviewed-by: Bill Richardson <wfrichar@chromium.org>
This commit is contained in:
committed by
chrome-internal-fetch
parent
cfe83a827d
commit
b3d38f5c62
@@ -115,10 +115,10 @@ VbError_t LoadKernel(LoadKernelParams *params, VbCommonParams *cparams)
|
||||
|
||||
/* Read GPT data */
|
||||
gpt.sector_bytes = (uint32_t)blba;
|
||||
gpt.drive_sectors = params->ending_lba + 1;
|
||||
gpt.streaming_drive_sectors = params->ending_lba + 1;
|
||||
/* TODO: Set stored_on_device and gpt_drive_sectors appropriately */
|
||||
gpt.stored_on_device = GPT_STORED_ON_DEVICE;
|
||||
gpt.gpt_drive_sectors = gpt.drive_sectors;
|
||||
gpt.gpt_drive_sectors = gpt.streaming_drive_sectors;
|
||||
gpt.flags = 0;
|
||||
if (0 != AllocAndReadGptData(params->disk_handle, &gpt)) {
|
||||
VBDEBUG(("Unable to read GPT data\n"));
|
||||
shcall->check_result = VBSD_LKC_CHECK_GPT_READ_ERROR;
|
||||
|
||||
Reference in New Issue
Block a user