diff options
author | Randall Spangler <rspangler@chromium.org> | 2012-07-08 14:20:32 -0700 |
---|---|---|
committer | Gerrit <chrome-bot@google.com> | 2012-07-09 13:38:23 -0700 |
commit | 0b69d0fd57253df900223ae09209b4f3aa69b788 (patch) | |
tree | 411ff80aee07915e195fde958537e7a2d1d12b76 /include/ec_commands.h | |
parent | 46bc2721c521bf84c654172addbef939de33b3d1 (diff) | |
download | chrome-ec-0b69d0fd57253df900223ae09209b4f3aa69b788.tar.gz |
Add option to disable system jumps
This allows the console or AP to keep the EC in its RO code.
Previously, the EC could jump from RO to RW even if the system was
locked in pre-init.
Also, sysjump console command doesn't need to check if system is
disabled before calling system_run_image_copy(), because that function
also checks. This now matches how the host command works.
BUG=chrome-os-partner:11147
TEST=manual
syslock
sysjump A -> works
reboot
syslock
sysjump disable
sysjump A -> fails
Repeat, using 'ectool reboot_ec disable-jump' at root shell instead of
'sysjump disable' at EC console.
Change-Id: I0b168a93e97802ba30e7c225b01d70ea66e8db58
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/26898
Diffstat (limited to 'include/ec_commands.h')
-rw-r--r-- | include/ec_commands.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ec_commands.h b/include/ec_commands.h index baa770d5e3..a12ac32eef 100644 --- a/include/ec_commands.h +++ b/include/ec_commands.h @@ -733,6 +733,7 @@ enum ec_reboot_cmd { EC_REBOOT_JUMP_RW_A, /* Jump to RW-A without rebooting */ EC_REBOOT_JUMP_RW_B, /* Jump to RW-B without rebooting */ EC_REBOOT_COLD, /* Cold-reboot */ + EC_REBOOT_DISABLE_JUMP, /* Disable jump until next reboot */ }; /* Flags for ec_params_reboot_ec.reboot_flags */ |