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

Side by Side Diff: firmware/lib/vboot_kernel.c

Issue 3249009: Always treat invalid images as nonexistant now. (Closed) Base URL: http://git.chromium.org/git/vboot_reference.git
Patch Set: Created 10 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | firmware/version.c » ('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 * Functions for loading a kernel from disk. 5 * Functions for loading a kernel from disk.
6 * (Firmware portion) 6 * (Firmware portion)
7 */ 7 */
8 8
9 #include "vboot_kernel.h" 9 #include "vboot_kernel.h"
10 10
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 /* Don't reboot to recovery mode if we're already there */ 422 /* Don't reboot to recovery mode if we're already there */
423 if (!is_rec) 423 if (!is_rec)
424 return (status == TPM_E_MUST_REBOOT ? 424 return (status == TPM_E_MUST_REBOOT ?
425 LOAD_KERNEL_REBOOT : LOAD_KERNEL_RECOVERY); 425 LOAD_KERNEL_REBOOT : LOAD_KERNEL_RECOVERY);
426 } 426 }
427 427
428 /* Success! */ 428 /* Success! */
429 return LOAD_KERNEL_SUCCESS; 429 return LOAD_KERNEL_SUCCESS;
430 } 430 }
431 431
432 // Handle error cases 432 /* The BIOS may attempt to display different screens depending on whether
433 if (found_partitions) 433 * we find an invalid kernel partition (return LOAD_KERNEL_INVALID) or not.
434 return LOAD_KERNEL_INVALID; 434 * But the flow is changing, so for now treating both cases as invalid gives
435 else 435 * slightly less confusing user feedback. Sigh.
436 return LOAD_KERNEL_NOT_FOUND; 436 */
437 return LOAD_KERNEL_INVALID;
437 } 438 }
OLDNEW
« no previous file with comments | « no previous file | firmware/version.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698