summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2019-04-22 13:11:49 -0600
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2019-05-07 21:32:35 +0000
commit88e7ef756fba2ff69613a81e042b8a87e95bdd16 (patch)
tree0a657756aa4aff89ca104d441f468ba9353a3eda
parenta50e25f1c7e47b8138bc39da4753689857675e69 (diff)
downloadchrome-ec-88e7ef756fba2ff69613a81e042b8a87e95bdd16.tar.gz
minute-ia: remove divzero console command
I had forgotten to remove this from testing the panic handler. This is a duplicate command of "crash divzero" and should be removed. BUG=b:126691187 BRANCH=none TEST=divzero console command is gone on arcada Change-Id: Id37d3f3749bd4228045cca93a38315ee9c94b2e9 Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1576837 Reviewed-by: Jett Rink <jettrink@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1598519 Commit-Queue: Jett Rink <jettrink@chromium.org> Tested-by: Jett Rink <jettrink@chromium.org>
-rw-r--r--core/minute-ia/panic.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/core/minute-ia/panic.c b/core/minute-ia/panic.c
index c879ee49a9..06c903be0c 100644
--- a/core/minute-ia/panic.c
+++ b/core/minute-ia/panic.c
@@ -143,16 +143,6 @@ __attribute__ ((noreturn)) void __keep exception_panic(
__builtin_unreachable();
}
-static int command_divzero(int argc, char **argv)
-{
- volatile int x = 0;
-
- x = 1 / x;
- return EC_SUCCESS;
-}
-DECLARE_CONSOLE_COMMAND(divzero, command_divzero, NULL,
- "Divide by zero to trigger a processor exception");
-
#ifdef CONFIG_SOFTWARE_PANIC
void software_panic(uint32_t reason, uint32_t info)
{