|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Minios-devel] [UNIKRAFT PATCH v4 11/12] lib/uksched: Add re-entrancy support for newlib
Hi Costin, this looks good, thanks. Cheers, Florian On 3/22/19 3:16 PM, Costin Lupu wrote: Re-entrancy in newlib is provided by mapping a _reent attribute to each thread. The attribute encapsulates the global state specific to each thread (e.g. errno, standard IO streams, signal state, etc). Signed-off-by: Costin Lupu <costin.lupu@xxxxxxxxx> Reviewed-by: Florian Schmidt <florian.schmidt@xxxxxxxxx> --- lib/uksched/exportsyms.uk | 3 +++ lib/uksched/include/uk/thread.h | 4 ++-- lib/uksched/thread.c | 29 +++++++++++++++++++++++++++-- 3 files changed, 32 insertions(+), 4 deletions(-) diff --git a/lib/uksched/exportsyms.uk b/lib/uksched/exportsyms.uk index c67892c4..5297affd 100644 --- a/lib/uksched/exportsyms.uk +++ b/lib/uksched/exportsyms.uk @@ -30,3 +30,6 @@ uk_thread_attr_set_prio uk_thread_attr_get_prio uk_thread_attr_set_timeslice uk_thread_attr_get_timeslice + +# Newlib related +__getreent \ No newline at end of file diff --git a/lib/uksched/include/uk/thread.h b/lib/uksched/include/uk/thread.h index f3891c29..f8bdbb5e 100644 --- a/lib/uksched/include/uk/thread.h +++ b/lib/uksched/include/uk/thread.h @@ -30,7 +30,7 @@#include <stdint.h> -- Dr. Florian Schmidt フローリアン・シュミット Research Scientist, Systems and Machine Learning Group NEC Laboratories Europe Kurfürsten-Anlage 36, D-69115 Heidelberg Tel. +49 (0)6221 4342-265 Fax: +49 (0)6221 4342-155 e-mail: florian.schmidt@xxxxxxxxx ============================================================ Registered at Amtsgericht Mannheim, Germany, HRB728558 _______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/minios-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |