[PATCH][Newlib][libgloss][AArch64] - Semihosting v2 AArch64 implementation (5 / 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 aarch64-none-elf and no regressions.
OK for master?
PS. I don't have commmit rights so if OK can someone apply for me?
Thanks,
Tamar
libgloss/aarch64/
2017-07-03 Tamar Christina <tamar.christina@arm.com>
* _kill.c (_kill): Add exit code reporting.
* _exit.c (_exit): Likewise.
* svc.h (AngelSVC_Reason_IsError): New.
(AngelSVC_Reason_ReportExceptionExtended): New.
(AngelSVC_Reason_Elapsed, AngelSVC_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-5.patch
Type: text/x-patch
Size: 9056 bytes
Desc: semihosting-patch-5.patch
URL: <http://sourceware.org/pipermail/newlib/attachments/20170703/a5c262bd/attachment.bin>
More information about the Newlib
mailing list