diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2019-04-22 13:11:49 -0600 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-04-24 15:52:03 -0700 |
commit | 3fc3edd0d8f4a445965c4a936db02b03d37bc215 (patch) | |
tree | cd634ffb13cb5d16d2aefd486adc7a3a5d868fee | |
parent | a644614860c8ae269d8615917770094838ae2ad8 (diff) | |
download | chrome-ec-3fc3edd0d8f4a445965c4a936db02b03d37bc215.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>
-rw-r--r-- | core/minute-ia/panic.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/core/minute-ia/panic.c b/core/minute-ia/panic.c index aec6c4016a..eda38abc7f 100644 --- a/core/minute-ia/panic.c +++ b/core/minute-ia/panic.c @@ -127,16 +127,6 @@ __attribute__ ((noreturn)) void __keep exception_panic( continue; } -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) { |