summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorBill Richardson <wfrichar@chromium.org>2016-08-25 15:10:55 -0700
committerBill Richardson <wfrichar@chromium.org>2016-08-31 17:20:26 +0000
commit8c4421759d127f23d9745c6b495e5d69e171b9a6 (patch)
treefeec0fdee8a19e56ac86c894c3fd69cf85b3bcfe /core
parentada6b3d5d5c058d38b7a73da48d3173c6c453da0 (diff)
downloadchrome-ec-8c4421759d127f23d9745c6b495e5d69e171b9a6.tar.gz
Cr50: Mark several console commands as safe
Even when CONFIG_RESTRICTED_CONSOLE_COMMANDS is enabled, there are many commands that can't do anything dangerous. This marks some of those commands as safe to use, even when restrictions are enforced. I'm only marking commands that are used by the Cr50, since that's the only board that has restrictions. BUG=chrome-os-partner:55322 BRANCH=none TEST=make buildall, test on Cr50 hardware Change-Id: I6289d332830175b6adcb6b20cb4c21d01d27a25e Signed-off-by: Bill Richardson <wfrichar@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/376188 Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'core')
-rw-r--r--core/cortex-m/task.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/cortex-m/task.c b/core/cortex-m/task.c
index 7b80c1584a..aaa263581c 100644
--- a/core/cortex-m/task.c
+++ b/core/cortex-m/task.c
@@ -606,9 +606,9 @@ int command_task_info(int argc, char **argv)
return EC_SUCCESS;
}
-DECLARE_CONSOLE_COMMAND(taskinfo, command_task_info,
- NULL,
- "Print task info");
+DECLARE_SAFE_CONSOLE_COMMAND(taskinfo, command_task_info,
+ NULL,
+ "Print task info");
#ifdef CONFIG_CMD_TASKREADY
static int command_task_ready(int argc, char **argv)