From 20c94b726e548c47a5237d60ac78c6f1e166e97b Mon Sep 17 00:00:00 2001 From: Daisuke Nojiri Date: Thu, 12 Oct 2017 17:56:53 -0700 Subject: EFS: Sysjump to active copy In EFS, EC needs to sysjump to the active copy, which is hashed and validated by the AP. BUG=b:67748602 BRANCH=none TEST=Verify Depthcharge makes EC jump to RW. Change-Id: I2ca893f7691ad776a791f2044dd7a0983d06e3c5 Signed-off-by: Daisuke Nojiri Reviewed-on: https://chromium-review.googlesource.com/717676 --- common/system.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common') diff --git a/common/system.c b/common/system.c index 2af4d2022a..cf72059465 100644 --- a/common/system.c +++ b/common/system.c @@ -844,7 +844,7 @@ static int handle_pending_reboot(enum ec_reboot_cmd cmd) case EC_REBOOT_JUMP_RO: return system_run_image_copy(SYSTEM_IMAGE_RO); case EC_REBOOT_JUMP_RW: - return system_run_image_copy(SYSTEM_IMAGE_RW); + return system_run_image_copy(system_get_active_copy()); case EC_REBOOT_COLD: #ifdef HAS_TASK_PDCMD /* Reboot the PD chip as well */ -- cgit v1.2.1