[PATCH][Newlib][libgloss][ARM] - Semihosting v2 ARM implementation (4 / 5)
Tamar Christina
Tamar.Christina@arm.com
Wed Jul 5 12:14:00 GMT 2017
Hi All,
resubmitting these as git-am patches.
Thanks,
Tamar
________________________________________
From: newlib-owner@sourceware.org <newlib-owner@sourceware.org> on behalf of Tamar Christina <Tamar.Christina@arm.com>
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 <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: 0004-Add-support-for-Semihosting-v2-support-for-ARM-in-li.patch
Type: text/x-patch
Size: 10936 bytes
Desc: 0004-Add-support-for-Semihosting-v2-support-for-ARM-in-li.patch
URL: <http://sourceware.org/pipermail/newlib/attachments/20170705/1de704fd/attachment.bin>
More information about the Newlib
mailing list