summaryrefslogtreecommitdiffstats
path: root/bootloader_message/bootloader_message.cpp
diff options
context:
space:
mode:
authorFlorian Mayer <fmayer@google.com>2021-12-09 02:49:09 +0100
committerFlorian Mayer <fmayer@google.com>2021-12-09 03:08:41 +0100
commitcf3234a093244f09a976b469ebfa2964f9ebe951 (patch)
treea033ccf382fab05f6e0ea34eb45dd239d46fe6f6 /bootloader_message/bootloader_message.cpp
parentMerge "GetBatteryInfo() also reads AIDL health HAL." (diff)
downloadandroid_bootable_recovery-cf3234a093244f09a976b469ebfa2964f9ebe951.tar
android_bootable_recovery-cf3234a093244f09a976b469ebfa2964f9ebe951.tar.gz
android_bootable_recovery-cf3234a093244f09a976b469ebfa2964f9ebe951.tar.bz2
android_bootable_recovery-cf3234a093244f09a976b469ebfa2964f9ebe951.tar.lz
android_bootable_recovery-cf3234a093244f09a976b469ebfa2964f9ebe951.tar.xz
android_bootable_recovery-cf3234a093244f09a976b469ebfa2964f9ebe951.tar.zst
android_bootable_recovery-cf3234a093244f09a976b469ebfa2964f9ebe951.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);