Hi All, resubmitting these as git-am patches. Thanks, Tamar ________________________________________ From: newlib-owner@sourceware.org on behalf of Tamar Christina Sent: Monday, July 3, 2017 5:54:58 PM To: newlib@sourceware.org Cc: nd; nickc@redhat.com; Richard Earnshaw Subject: [PATCH][Newlib][libgloss][ARM] - Semihosting v2 ARM implementation (4 / 5) Hi All, This patch adds support for Semihosting v2 support for ARM in libgloss. Semihosting v2 changes are documented here: https://developer.arm.com/docs/100863/latest/ The biggest change is the addition of an extensions mechanism to add more extensions in the future. Regression tested on arm-none-eabi and no regressions. OK for master? PS. I don't have commit rights, so if OK can someone apply for me? Thanks, Tamar libgloss/arm/ 2017-07-03 Tamar Christina * _kill.c (_kill): Add exit code reporting. * swi.h (AngelSWI, AngelSWI_ARM): Add support for HLT. (AngelSWI_Reason_IsError): New. (AngelSWI_Reason_ReportExceptionExtended): New. (AngelSWI_Reason_Elapsed, AngelSWI_Reason_TickFreq): New. (NUM_SHFB_MAGIC, SHFB_MAGIC_0, SHFB_MAGIC_2, SHFB_MAGIC_3): New. (SH_EXT_EXIT_EXTENDED_BITNUM, SH_EXT_STDOUT_STDERR_BITNUM): New. * syscalls.c (get_semihosting_exts, has_ext_exit_extended): New. (has_ext_stdout_stderr, initialise_semihosting_exts): New. (initialise_monitor_handles): Check for extension.