]> Git Repo - J-u-boot.git/blame - cmd/riscv/exception.c
command: Remove the cmd_tbl_t typedef
[J-u-boot.git] / cmd / riscv / exception.c
CommitLineData
dab8788a
HS
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * The 'exception' command can be used for testing exception handling.
4 *
5 * Copyright (c) 2018, Heinrich Schuchardt <[email protected]>
6 */
7
8#include <common.h>
9#include <command.h>
10
09140113
SG
11static int do_undefined(struct cmd_tbl *cmdtp, int flag, int argc,
12 char *const argv[])
dab8788a
HS
13{
14 asm volatile (".word 0xffffffff\n");
15 return CMD_RET_FAILURE;
16}
17
09140113 18static struct cmd_tbl cmd_sub[] = {
dab8788a
HS
19 U_BOOT_CMD_MKENT(undefined, CONFIG_SYS_MAXARGS, 1, do_undefined,
20 "", ""),
21};
22
23static char exception_help_text[] =
24 "<ex>\n"
25 " The following exceptions are available:\n"
26 " undefined - undefined instruction\n"
27 ;
28
29#include <exception.h>
This page took 0.045244 seconds and 4 git commands to generate.