summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Compostella <jeremy.compostella@intel.com>2016-05-24 03:17:01 +0200
committerandroid-build-merger <android-build-merger@google.com>2016-05-24 03:17:01 +0200
commit1afd591a09cee35d0cafac3c1d7f236fe28cf274 (patch)
tree5a72c44e196d110faa67a127da1364f89a43b612
parentresolve merge conflicts of 84478e8 to nyc-mr1-dev-plus-aosp (diff)
parentMerge "slot_metadata: add verity_corrupted field" am: 3788001b2c (diff)
downloadandroid_bootable_recovery-1afd591a09cee35d0cafac3c1d7f236fe28cf274.tar
android_bootable_recovery-1afd591a09cee35d0cafac3c1d7f236fe28cf274.tar.gz
android_bootable_recovery-1afd591a09cee35d0cafac3c1d7f236fe28cf274.tar.bz2
android_bootable_recovery-1afd591a09cee35d0cafac3c1d7f236fe28cf274.tar.lz
android_bootable_recovery-1afd591a09cee35d0cafac3c1d7f236fe28cf274.tar.xz
android_bootable_recovery-1afd591a09cee35d0cafac3c1d7f236fe28cf274.tar.zst
android_bootable_recovery-1afd591a09cee35d0cafac3c1d7f236fe28cf274.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