| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |