From: Heinrich Schuchardt Date: Thu, 19 Nov 2020 22:11:12 +0100 Subject: [PATCH v2 1/4] sandbox: add handler for exceptions In-Reply-To: References: <20201111232959.11241-1-xypron.glpk@gmx.de> <20201111232959.11241-2-xypron.glpk@gmx.de> Message-ID: <525bbfeb-d306-3b75-2930-b8567437f00c@gmx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 17.11.20 00:53, Simon Glass wrote: > Hi Heinrich, > > On Wed, 11 Nov 2020 at 16:30, Heinrich Schuchardt wrote: >> >> Add a handler for SIGILL, SIGBUS, SIGSEGV. >> >> When an exception occurs print the program counter and the loaded >> UEFI binaries and reset the system if CONFIG_SANDBOX_CRASH_RESET=y >> or exit to the OS otherwise. >> >> Signed-off-by: Heinrich Schuchardt >> --- >> v2: >> add a customizing switch >> set SA_NODEFER flag for sigaction >> --- >> arch/sandbox/Kconfig | 9 ++++++++ >> arch/sandbox/cpu/os.c | 40 +++++++++++++++++++++++++++++++++++ >> arch/sandbox/cpu/start.c | 4 ++++ >> arch/sandbox/lib/interrupts.c | 35 ++++++++++++++++++++++++++++++ >> include/os.h | 17 +++++++++++++++ >> 5 files changed, 105 insertions(+) > > Reviewed-by: Simon Glass > > Do you think a command-line flag might be useful too/instead? > For my needs the CONFIG flag is enough. I could not find the mail for patch 2/4 in my inbox. I have tested on aarch64 that the exception work here too. Best regards Heinrich