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

Unified Diff: firmware/stub/load_firmware_stub.c

Issue 2809037: Make vboot_reference build in MSVC command line environment. (Closed) Base URL: ssh://git@chromiumos-git/vboot_reference.git
Patch Set: Integrated trunk changes. Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « firmware/stub/include/biosincludes.h ('k') | firmware/stub/tlcl.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: firmware/stub/load_firmware_stub.c
diff --git a/firmware/stub/load_firmware_stub.c b/firmware/stub/load_firmware_stub.c
index 9453856a8a857eece4eb1abaf3ae7e9ce4da1762..9d99b4a0f031886d8f26ed77131a717d7e8e8301 100644
--- a/firmware/stub/load_firmware_stub.c
+++ b/firmware/stub/load_firmware_stub.c
@@ -35,9 +35,13 @@ int GetFirmwareBody(LoadFirmwareParams* params, uint64_t index) {
case 0:
size = ci->firmwareA_size;
fw = ci->firmwareA;
+ break;
+
case 1:
size = ci->firmwareB_size;
fw = ci->firmwareB;
+ break;
+
default:
/* Anything else is invalid */
return 1;
@@ -68,6 +72,7 @@ int VerifyFirmwareDriver_stub(uint8_t* root_key_blob,
int rv;
CallerInternal ci;
+ LoadFirmwareParams p;
/* Copy the firmware volume pointers to our global variables. */
ci.firmwareA = firmwareA;
@@ -78,7 +83,6 @@ int VerifyFirmwareDriver_stub(uint8_t* root_key_blob,
ci.firmwareB_size = 0;
/* Set up the params for LoadFirmware() */
- LoadFirmwareParams p;
p.caller_internal = &ci;
p.firmware_root_key_blob = root_key_blob;
p.verification_block_0 = verification_headerA;
« no previous file with comments | « firmware/stub/include/biosincludes.h ('k') | firmware/stub/tlcl.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698