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

Side by Side Diff: vboot_firmware/stub/load_firmware_stub.c

Issue 2866006: Move old vkernel code out of vboot_firmware. (Closed) Base URL: ssh://gitrw.chromium.org/vboot_reference.git
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « vboot_firmware/linktest/main.c ('k') | vkernel/Makefile » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. 3 * found in the LICENSE file.
4 * 4 *
5 * TEMPORARY stub for calling LoadFirmware() which looks like the old 5 * TEMPORARY stub for calling LoadFirmware() which looks like the old
6 * VerifyFirmwareDriver_f() call. 6 * VerifyFirmwareDriver_f() call.
7 * (Firmware portion) 7 * (Firmware portion)
8 */ 8 */
9 9
10 #include "load_firmware_fw.h" 10 #include "load_firmware_fw.h"
11 #include "utility.h"
11 12
12 #include "firmware_image_fw.h" 13 #define BOOT_FIRMWARE_A_CONTINUE 1
13 #include "utility.h" 14 #define BOOT_FIRMWARE_B_CONTINUE 2
15 #define BOOT_FIRMWARE_RECOVERY_CONTINUE 3
14 16
15 typedef struct CallerInternal { 17 typedef struct CallerInternal {
16 uint8_t *firmwareA; 18 uint8_t *firmwareA;
17 uint64_t firmwareA_size; 19 uint64_t firmwareA_size;
18 uint8_t *firmwareB; 20 uint8_t *firmwareB;
19 uint64_t firmwareB_size; 21 uint64_t firmwareB_size;
20 } CallerInternal; 22 } CallerInternal;
21 23
22 int GetFirmwareBody(LoadFirmwareParams* params, uint64_t index) { 24 int GetFirmwareBody(LoadFirmwareParams* params, uint64_t index) {
23 25
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 * p.kernel_sign_key_size SO YOU CAN PASS THEM TO LoadKernel(). */ 95 * p.kernel_sign_key_size SO YOU CAN PASS THEM TO LoadKernel(). */
94 96
95 return (0 == p.firmware_index ? BOOT_FIRMWARE_A_CONTINUE : 97 return (0 == p.firmware_index ? BOOT_FIRMWARE_A_CONTINUE :
96 BOOT_FIRMWARE_B_CONTINUE); 98 BOOT_FIRMWARE_B_CONTINUE);
97 99
98 } else { 100 } else {
99 /* Error */ 101 /* Error */
100 return BOOT_FIRMWARE_RECOVERY_CONTINUE; 102 return BOOT_FIRMWARE_RECOVERY_CONTINUE;
101 } 103 }
102 } 104 }
OLDNEW
« no previous file with comments | « vboot_firmware/linktest/main.c ('k') | vkernel/Makefile » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698