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

Unified Diff: firmware/lib/cgptlib/include/cgptlib_internal.h

Issue 5115002: Fixing the bug of CGPT when primary entry table is invalid. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/vboot_reference.git
Patch Set: Created 10 years, 1 month 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
« cgpt/cmd_add.c ('K') | « cgpt/cmd_show.c ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: firmware/lib/cgptlib/include/cgptlib_internal.h
diff --git a/firmware/lib/cgptlib/include/cgptlib_internal.h b/firmware/lib/cgptlib/include/cgptlib_internal.h
index 66ceef13884110a21837aae19c1ab88bbe0b9144..ccd719c98f13c2109ce8fb7c6f4bb49b8b37d4f1 100644
--- a/firmware/lib/cgptlib/include/cgptlib_internal.h
+++ b/firmware/lib/cgptlib/include/cgptlib_internal.h
@@ -61,8 +61,12 @@
/* alias name of index in internal array for primary and secondary header and
* entries. */
enum {
+ /* constants for index */
PRIMARY = 0,
SECONDARY = 1,
+ ANY_VALID = 9999, /* accept any between primary and secondary */
+
+ /* constants for bit mask */
MASK_NONE = 0,
MASK_PRIMARY = 1,
MASK_SECONDARY = 2,
« cgpt/cmd_add.c ('K') | « cgpt/cmd_show.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698