summaryrefslogtreecommitdiff
path: root/common/host_command.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/host_command.c')
-rw-r--r--common/host_command.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/common/host_command.c b/common/host_command.c
index 51d1a9cf97..0a6226b59e 100644
--- a/common/host_command.c
+++ b/common/host_command.c
@@ -81,6 +81,18 @@ uint8_t *host_get_memmap(int offset)
#endif
}
+static struct mutex memmap_write_mutex;
+
+void host_lock_memmap()
+{
+ mutex_lock(&memmap_write_mutex);
+}
+
+void host_unlock_memmap()
+{
+ mutex_unlock(&memmap_write_mutex);
+}
+
int host_get_vboot_mode(void)
{
return g_vboot_mode;