summaryrefslogtreecommitdiffstats
path: root/bootloader_message/bootloader_message.cpp
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-02-15 05:01:57 +0100
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-02-15 05:01:57 +0100
commit530234b27e2c5539d13e17ae4948f30980d22d7e (patch)
treee3aa9c5f9bc1882f1fbf7bbc27f7544aee2087b6 /bootloader_message/bootloader_message.cpp
parentMerge "minui: Add support for ARGB (LSB alpha)" (diff)
parent[automerger skipped] Merge sc-v2-dev-plus-aosp-without-vendor@8084891 am: 6d3993bab0 -s ours am: fa896ec4d9 -s ours (diff)
downloadandroid_bootable_recovery-530234b27e2c5539d13e17ae4948f30980d22d7e.tar
android_bootable_recovery-530234b27e2c5539d13e17ae4948f30980d22d7e.tar.gz
android_bootable_recovery-530234b27e2c5539d13e17ae4948f30980d22d7e.tar.bz2
android_bootable_recovery-530234b27e2c5539d13e17ae4948f30980d22d7e.tar.lz
android_bootable_recovery-530234b27e2c5539d13e17ae4948f30980d22d7e.tar.xz
android_bootable_recovery-530234b27e2c5539d13e17ae4948f30980d22d7e.tar.zst
android_bootable_recovery-530234b27e2c5539d13e17ae4948f30980d22d7e.zip
Diffstat (limited to 'bootloader_message/bootloader_message.cpp')
-rw-r--r--bootloader_message/bootloader_message.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/bootloader_message/bootloader_message.cpp b/bootloader_message/bootloader_message.cpp
index b70d54e5c..1ea56cd4e 100644
--- a/bootloader_message/bootloader_message.cpp
+++ b/bootloader_message/bootloader_message.cpp
@@ -304,6 +304,16 @@ bool WriteMiscVirtualAbMessage(const misc_virtual_ab_message& message, std::stri
offsetof(misc_system_space_layout, virtual_ab_message), err);
}
+bool ReadMiscMemtagMessage(misc_memtag_message* message, std::string* err) {
+ return ReadMiscPartitionSystemSpace(message, sizeof(*message),
+ offsetof(misc_system_space_layout, memtag_message), err);
+}
+
+bool WriteMiscMemtagMessage(const misc_memtag_message& message, std::string* err) {
+ return WriteMiscPartitionSystemSpace(&message, sizeof(message),
+ offsetof(misc_system_space_layout, memtag_message), err);
+}
+
extern "C" bool write_reboot_bootloader(void) {
std::string err;
return write_reboot_bootloader(&err);