1 // SPDX-License-Identifier: GPL-2.0+
3 * The 'exception' command can be used for testing exception handling.
11 static int do_undefined(struct cmd_tbl *cmdtp, int flag, int argc,
15 * 0xe7f...f. is undefined in ARM mode
16 * 0xde.. is undefined in Thumb mode
18 asm volatile (".word 0xe7f7defb\n");
19 return CMD_RET_FAILURE;
22 static struct cmd_tbl cmd_sub[] = {
23 U_BOOT_CMD_MKENT(undefined, CONFIG_SYS_MAXARGS, 1, do_undefined,
27 static char exception_help_text[] =
29 " The following exceptions are available:\n"
30 " undefined - undefined instruction\n"
33 #include <exception.h>