Implement the commands
* exception undefined - execute an illegal instruction
* exception sigsegv - cause a segment violation
Here is a possible output:
=> exception undefined
Illegal instruction
pc = 0x55eb8d0a7575, pc_reloc = 0x57575
Resetting ...
Signed-off-by: Heinrich Schuchardt <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
---
v2:
no change
---
cmd/Kconfig | 2 +-
cmd/Makefile | 1 +
cmd/sandbox/Makefile | 3 +++
cmd/sandbox/exception.c | 41 +++++++++++++++++++++++++++++++++++++++++
4 files changed, 46 insertions(+), 1 deletion(-)
create mode 100644 cmd/sandbox/Makefile
create mode 100644 cmd/sandbox/exception.c
Applied to u-boot-dm, thanks!