[PATCH 2/3] cmd: sandbox: implement exception command

Simon Glass sjg at chromium.org
Wed Nov 11 15:32:14 CET 2020


On Tue, 10 Nov 2020 at 16:09, Heinrich Schuchardt <xypron.glpk at gmx.de> wrote:
>
> 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 <xypron.glpk at gmx.de>
> ---
>  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

Reviewed-by: Simon Glass <sjg at chromium.org>

But it does need a test


More information about the U-Boot mailing list