summaryrefslogtreecommitdiff
path: root/common/system.c
diff options
context:
space:
mode:
authorDaisuke Nojiri <dnojiri@chromium.org>2017-10-12 17:56:53 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-10-17 13:02:49 -0700
commit20c94b726e548c47a5237d60ac78c6f1e166e97b (patch)
tree8c2b5e4131ba3d1cbed6bbe7b2a3400309637fbd /common/system.c
parent33ec4ae3bc4a6c08e78fa6039b8f424627560bdc (diff)
downloadchrome-ec-20c94b726e548c47a5237d60ac78c6f1e166e97b.tar.gz
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 <dnojiri@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/717676
Diffstat (limited to 'common/system.c')
-rw-r--r--common/system.c2
1 files changed, 1 insertions, 1 deletions
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 */