ee.
> Returning a negative exit code is bogus, though. You
> probably just want
>if (args == ADP_Stopped_ApplicationExit) {
>code = EXIT_SUCCESS;
>} else {
>code = EXIT_FAILURE;
>}
The idea was to distinguish the supported arguments from the unknown ones
(newlib only uses the listed two) but that would also work for me.
--
Eric Botcazou
> Since you've found that, can you provide your answer to the objection
> raised back then, that this is not permitted by the semihosting API
> which we are implementing here?
I don't understand the question: what is not permitted exactly?
--
Eric Botcazou
ith newlib.
Signed-off-by: Eric Botcazou
---
target-arm/arm-semi.c | 23 +--
1 files changed, 21 insertions(+), 2 deletions(-)
diff --git a/target-arm/arm-semi.c b/target-arm/arm-semi.c
index ebb5235..dd6c2d9 100644
--- a/target-arm/arm-semi.c
+++ b/target-arm/arm-semi.c
@@ -