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 f4a4d1996335b133d3850a5fbd461c3664cfcada..5252b6a01f0de9717ecd8109041b3b8f33c45b8d 100644 |
--- a/firmware/lib/cgptlib/include/cgptlib_internal.h |
+++ b/firmware/lib/cgptlib/include/cgptlib_internal.h |
@@ -28,17 +28,17 @@ |
* 1 -- UEFI: partition is not mapped |
* 0 -- UEFI: partition is required |
*/ |
-#define CGPT_ATTRIBUTE_SUCCESSFUL_OFFSET 56 |
+#define CGPT_ATTRIBUTE_SUCCESSFUL_OFFSET (56 - 48) |
#define CGPT_ATTRIBUTE_MAX_SUCCESSFUL (1ULL) |
#define CGPT_ATTRIBUTE_SUCCESSFUL_MASK (CGPT_ATTRIBUTE_MAX_SUCCESSFUL << \ |
CGPT_ATTRIBUTE_SUCCESSFUL_OFFSET) |
-#define CGPT_ATTRIBUTE_TRIES_OFFSET 52 |
+#define CGPT_ATTRIBUTE_TRIES_OFFSET (52 - 48) |
#define CGPT_ATTRIBUTE_MAX_TRIES (15ULL) |
#define CGPT_ATTRIBUTE_TRIES_MASK (CGPT_ATTRIBUTE_MAX_TRIES << \ |
CGPT_ATTRIBUTE_TRIES_OFFSET) |
-#define CGPT_ATTRIBUTE_PRIORITY_OFFSET 48 |
+#define CGPT_ATTRIBUTE_PRIORITY_OFFSET (48 - 48) |
#define CGPT_ATTRIBUTE_MAX_PRIORITY (15ULL) |
#define CGPT_ATTRIBUTE_PRIORITY_MASK (CGPT_ATTRIBUTE_MAX_PRIORITY << \ |
CGPT_ATTRIBUTE_PRIORITY_OFFSET) |