From 3fc3edd0d8f4a445965c4a936db02b03d37bc215 Mon Sep 17 00:00:00 2001 From: Jack Rosenthal Date: Mon, 22 Apr 2019 13:11:49 -0600 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/1576837 Reviewed-by: Jett Rink --- core/minute-ia/panic.c | 10 ---------- 1 file changed, 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) { -- cgit v1.2.1