[PATCH][Newlib][libgloss][ARM] - Semihosting v2 ARM implementation (4 / 5)

Tamar Christina Tamar.Christina@arm.com
Mon Jul 3 16:55:00 GMT 2017


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  <tamar.christina@arm.com>

	* _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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: semihosting-patch-4.patch
Type: text/x-patch
Size: 10383 bytes
Desc: semihosting-patch-4.patch
URL: <http://sourceware.org/pipermail/newlib/attachments/20170703/1c2f1481/attachment.bin>


More information about the Newlib mailing list