summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Compostella <jeremy.compostella@intel.com>2016-05-23 23:22:07 +0200
committerandroid-build-merger <android-build-merger@google.com>2016-05-23 23:22:07 +0200
commitf5e2831bf32fe1c0069c3c7bbeda876dbb83fe0a (patch)
treec1d319877e80f1b421de63de3687ef2d9b95645a
parentresolve merge conflicts of 50f6417 to nyc-dev-plus-aosp (diff)
parentMerge "slot_metadata: add verity_corrupted field" (diff)
downloadandroid_bootable_recovery-f5e2831bf32fe1c0069c3c7bbeda876dbb83fe0a.tar
android_bootable_recovery-f5e2831bf32fe1c0069c3c7bbeda876dbb83fe0a.tar.gz
android_bootable_recovery-f5e2831bf32fe1c0069c3c7bbeda876dbb83fe0a.tar.bz2
android_bootable_recovery-f5e2831bf32fe1c0069c3c7bbeda876dbb83fe0a.tar.lz
android_bootable_recovery-f5e2831bf32fe1c0069c3c7bbeda876dbb83fe0a.tar.xz
android_bootable_recovery-f5e2831bf32fe1c0069c3c7bbeda876dbb83fe0a.tar.zst
android_bootable_recovery-f5e2831bf32fe1c0069c3c7bbeda876dbb83fe0a.zip
Diffstat (limited to '')
-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