1 // SPDX-License-Identifier: GPL-2.0+
3 * The 'exception' command can be used for testing exception handling.
5 * Copyright (c) 2018, Heinrich Schuchardt <xypron.glpk@gmx.de>
11 static int do_undefined(cmd_tbl_t *cmdtp, int flag, int argc,
14 asm volatile (".word 0xffff\n");
15 return CMD_RET_FAILURE;
18 static cmd_tbl_t cmd_sub[] = {
19 U_BOOT_CMD_MKENT(undefined, CONFIG_SYS_MAXARGS, 1, do_undefined,
23 static char exception_help_text[] =
25 " The following exceptions are available:\n"
26 " undefined - undefined instruction\n"
29 #include <exception.h>