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

Side by Side Diff: host/arch/x86/lib/crossystem_arch.c

Issue 6879051: Process case of corrupted firmware explicitly. (Closed) Base URL: ssh://gitrw.chromium.org:9222/vboot_reference.git@master
Patch Set: Created 9 years, 8 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 | no next file » | 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) 2011 The Chromium OS Authors. All rights reserved. 1 /* Copyright (c) 2011 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 5
6 #include <stdio.h> 6 #include <stdio.h>
7 #include <string.h> 7 #include <string.h>
8 #include <sys/types.h> 8 #include <sys/types.h>
9 #include <sys/stat.h> 9 #include <sys/stat.h>
10 #include <unistd.h> 10 #include <unistd.h>
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 /* Fall back to BINF.0 for legacy systems like Mario. */ 385 /* Fall back to BINF.0 for legacy systems like Mario. */
386 switch(ReadFileInt(ACPI_BINF_PATH ".0")) { 386 switch(ReadFileInt(ACPI_BINF_PATH ".0")) {
387 case BINF0_NORMAL: 387 case BINF0_NORMAL:
388 case BINF0_DEVELOPER: 388 case BINF0_DEVELOPER:
389 return VBNV_RECOVERY_NOT_REQUESTED; 389 return VBNV_RECOVERY_NOT_REQUESTED;
390 case BINF0_RECOVERY_BUTTON: 390 case BINF0_RECOVERY_BUTTON:
391 return VBNV_RECOVERY_RO_MANUAL; 391 return VBNV_RECOVERY_RO_MANUAL;
392 case BINF0_RECOVERY_DEV_SCREEN_KEY: 392 case BINF0_RECOVERY_DEV_SCREEN_KEY:
393 return VBNV_RECOVERY_RW_DEV_SCREEN; 393 return VBNV_RECOVERY_RW_DEV_SCREEN;
394 case BINF0_RECOVERY_RW_FW_BAD: 394 case BINF0_RECOVERY_RW_FW_BAD:
395 return VBNV_RECOVERY_RO_INVALID_RW;
395 case BINF0_RECOVERY_NO_OS: 396 case BINF0_RECOVERY_NO_OS:
396 return VBNV_RECOVERY_RW_NO_OS; 397 return VBNV_RECOVERY_RW_NO_OS;
397 case BINF0_RECOVERY_BAD_OS: 398 case BINF0_RECOVERY_BAD_OS:
398 return VBNV_RECOVERY_RW_INVALID_OS; 399 return VBNV_RECOVERY_RW_INVALID_OS;
399 case BINF0_RECOVERY_OS_INITIATED: 400 case BINF0_RECOVERY_OS_INITIATED:
400 return VBNV_RECOVERY_LEGACY; 401 return VBNV_RECOVERY_LEGACY;
401 default: 402 default:
402 /* Other values don't map cleanly to firmware type. */ 403 /* Other values don't map cleanly to firmware type. */
403 return -1; 404 return -1;
404 } 405 }
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 619
619 return -1; 620 return -1;
620 } 621 }
621 622
622 623
623 int VbSetArchPropertyString(const char* name, const char* value) { 624 int VbSetArchPropertyString(const char* name, const char* value) {
624 /* If there were settable architecture-dependent string properties, 625 /* If there were settable architecture-dependent string properties,
625 * they'd be here. */ 626 * they'd be here. */
626 return -1; 627 return -1;
627 } 628 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698