summaryrefslogtreecommitdiff
path: root/common/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/main.c')
-rw-r--r--common/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/common/main.c b/common/main.c
index 6b4dfb704c..74a698460e 100644
--- a/common/main.c
+++ b/common/main.c
@@ -110,6 +110,11 @@ int main(void)
* Note that steps above here may be done TWICE per boot, once in the
* RO image and once in the RW image. */
vboot_init();
+
+ /* If system is locked, disable system jumps now that vboot has had its
+ * chance to jump to a RW image. */
+ if (system_is_locked())
+ system_disable_jump();
#endif
/* Initialize other driver modules. These can occur in any order.