From 1bfda7293ac0f06681097a8cd6964d86af0b24ba Mon Sep 17 00:00:00 2001 From: Julius Werner Date: Wed, 10 Oct 2018 15:54:10 -0700 Subject: libpayload: gdb: Factor out gdb_handle_reentrant_exception() from arm32 The arm32 GDB architecture code contains a little hack that allows it to (sort of) correctly deal with a reentrant exception triggered from within the GDB stub. The main logic for this isn't really arm32 specific and could be useful for other architectures as well, so factor it out into a separate function. Change-Id: I3c6db8cecf1e86bba23de6fd2ac9fdf0cf69d3c6 Signed-off-by: Julius Werner Reviewed-on: https://review.coreboot.org/29019 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- payloads/libpayload/include/gdb.h | 1 + 1 file changed, 1 insertion(+) (limited to 'payloads/libpayload/include/gdb.h') diff --git a/payloads/libpayload/include/gdb.h b/payloads/libpayload/include/gdb.h index 8147431105..1f50491662 100644 --- a/payloads/libpayload/include/gdb.h +++ b/payloads/libpayload/include/gdb.h @@ -77,6 +77,7 @@ void gdb_send_reply(const struct gdb_message *reply); /* gdb/stub.c */ void gdb_command_loop(uint8_t signal); +int gdb_handle_reentrant_exception(void); enum { GDB_SIG0 = 0, /* Signal 0 */ -- cgit v1.2.3