[PATCH 1/1] sandbox: support CTRL-C processing in U-Boot

Simon Glass sjg at chromium.org
Sat Sep 19 04:59:46 CEST 2020


Hi Heinrich,

On Thu, 17 Sep 2020 at 12:04, Heinrich Schuchardt <xypron.glpk at gmx.de> wrote:
>
> Currently if SIGINT is received, it terminates U-Boot. This does not allow
> testing the handling of CTRL-C in U-Boot and in UEFI applications.
> It is especially annoying when working with the 'mm' command.
>
> Let the serial console driver provide character 0x03 if SIGINT occurs. We
> can still exit U-Boot using the reset or poweroff command.
>
> Adjust the sandbox test_ctrl_c() Python test accordingly.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
> ---
>  arch/sandbox/cpu/os.c              | 15 ++++++++++++---
>  drivers/serial/sandbox.c           | 11 ++++++++---
>  include/os.h                       | 14 ++++++++++++++
>  test/py/tests/test_sandbox_exit.py | 10 +++++++++-
>  4 files changed, 43 insertions(+), 7 deletions(-)

I'm sorry but I still do want Ctrl-C to work. How about adding a short
option to change the terminal mode?

Regards,
Simon


More information about the U-Boot mailing list