summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2016-05-23 23:10:16 +0200
committerGerrit Code Review <noreply-gerritcodereview@google.com>2016-05-23 23:10:16 +0200
commit3788001b2c8a37e4111c9bc584a18a52664c2a88 (patch)
tree86276f8fff255a0007334c11e044f59b44fbb899
parentMerge "Keep ADF device alive for the lifetime of the minui backend" (diff)
parentslot_metadata: add verity_corrupted field (diff)
downloadandroid_bootable_recovery-3788001b2c8a37e4111c9bc584a18a52664c2a88.tar
android_bootable_recovery-3788001b2c8a37e4111c9bc584a18a52664c2a88.tar.gz
android_bootable_recovery-3788001b2c8a37e4111c9bc584a18a52664c2a88.tar.bz2
android_bootable_recovery-3788001b2c8a37e4111c9bc584a18a52664c2a88.tar.lz
android_bootable_recovery-3788001b2c8a37e4111c9bc584a18a52664c2a88.tar.xz
android_bootable_recovery-3788001b2c8a37e4111c9bc584a18a52664c2a88.tar.zst
android_bootable_recovery-3788001b2c8a37e4111c9bc584a18a52664c2a88.zip
-rw-r--r--bootloader.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/bootloader.h b/bootloader.h
index 92c74f078..de5351851 100644
--- a/bootloader.h
+++ b/bootloader.h
@@ -74,8 +74,11 @@ struct slot_metadata {
uint8_t tries_remaining : 3;
// 1 if this slot has booted successfully, 0 otherwise.
uint8_t successful_boot : 1;
+ // 1 if this slot is corrupted from a dm-verity corruption, 0
+ // otherwise.
+ uint8_t verity_corrupted : 1;
// Reserved for further use.
- uint8_t reserved;
+ uint8_t reserved : 7;
} __attribute__((packed));
/* Bootloader Control AB