]>
xenbits.xensource.com Git - unikraft/libs/pthread-embedded.git/log
summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Costin Lupu [Fri, 6 Dec 2019 13:12:31 +0000 (15:12 +0200)]
Add pthread_condattr_{get, set}clock() stubs
Signed-off-by: Costin Lupu <costin.lupu@cs.pub.ro>
Reviewed-by: Vlad-Andrei Badoiu <vlad_andrei.badoiu@stud.acs.upb.ro>
Costin Lupu [Fri, 6 Dec 2019 13:12:30 +0000 (15:12 +0200)]
attributes.c: Allow GNU definitions regardless of _GNU_SOURCE
Signed-off-by: Costin Lupu <costin.lupu@cs.pub.ro>
Reviewed-by: Vlad-Andrei Badoiu <vlad_andrei.badoiu@stud.acs.upb.ro>
Costin Lupu [Fri, 6 Dec 2019 13:12:29 +0000 (15:12 +0200)]
Remove exportsyms.uk
Signed-off-by: Costin Lupu <costin.lupu@cs.pub.ro>
Reviewed-by: Vlad-Andrei Badoiu <vlad_andrei.badoiu@stud.acs.upb.ro>
Vlad-Andrei BĂDOIU (78692) [Sat, 9 Nov 2019 10:21:29 +0000 (10:21 +0000)]
Add != operator for pte_handle_t
Signed-off-by: Vlad-Andrei Badoiu <vlad_andrei.badoiu@stud.acs.upb.ro>
Reviewed-by: Costin Lupu <costin.lupu@cs.pub.ro>
Costin Lupu [Fri, 1 Nov 2019 11:20:01 +0000 (13:20 +0200)]
Add pthread_sigmask() stub
Signed-off-by: Costin Lupu <costin.lupu@cs.pub.ro>
Reviewed-by: Stefan Teodorescu <stefanl.teodorescu@gmail.com>
Vlad-Andrei BĂDOIU (78692) [Wed, 30 Oct 2019 22:37:58 +0000 (22:37 +0000)]
Set priority to pthread constructor
Other libraries might use the default constructor attribute and expect pthreads
to be initialised. Currently, the priority for pthread-embedded library
constructor has the highest priority (101).
Signed-off-by: Vlad-Andrei Badoiu <vlad_andrei.badoiu@stud.acs.upb.ro>
Reviewed-by: Costin Lupu <costin.lupu@cs.pub.ro>
Cyril Soldani [Tue, 15 Oct 2019 15:06:23 +0000 (17:06 +0200)]
Add pte_{pop, push}_cleanup to exported symbols
These functions are used by pthread_cleanup_{pop,push}.
Signed-off-by: Cyril Soldani <cyril.soldani@uliege.be>
Reviewed-by: Felipe Huici <felipe.huici@neclab.eu>
Cyril Soldani [Tue, 15 Oct 2019 15:06:22 +0000 (17:06 +0200)]
Sort exported symbols
Signed-off-by: Cyril Soldani <cyril.soldani@uliege.be>
Reviewed-by: Felipe Huici <felipe.huici@neclab.eu>
Costin Lupu [Sat, 12 Oct 2019 12:33:26 +0000 (15:33 +0300)]
Makefile.uk: Rename SUPPRESS_FLAGS to LIBPTHREAD-EMBEDDED_SUPPRESS_FLAGS
Signed-off-by: Costin Lupu <costin.lupu@cs.pub.ro>
Reviewed-by: Felipe Huici <felipe.huici@neclab.eu>
Costin Lupu [Sun, 13 Oct 2019 13:16:55 +0000 (16:16 +0300)]
pthread.h: Convert pthread_t to unsigned long
The POSIX standard outlines that pthread_t is an opaque data type and no
assumption should be made about it. However, we observed that libraries and
applications assume frequently that pthread_t is a pointer or other numerical
data type and use it to identify the corresponding threads.
pthread-embedded makes the strange decision to define pthread_t as
structure, a decision that, although compliant with POSIX standards,
makes the porting process a bit challenging. Therefore we introduce a
conversion function which simply returns the first encapsulated
unsigned long value in the structure which actually points to the
underlying thread object.
Signed-off-by: Costin Lupu <costin.lupu@cs.pub.ro>
Reviewed-by: Felipe Huici <felipe.huici@neclab.eu>
Costin Lupu [Wed, 21 Aug 2019 13:07:51 +0000 (16:07 +0300)]
Add sched.h header
Add it just to provide cpu_set_t type definition.
Signed-off-by: Costin Lupu <costin.lupu@cs.pub.ro>
Reviewed-by: Felipe Huici <felipe.huici@neclab.eu>
Teodora Serbanescu [Tue, 30 Jul 2019 10:17:14 +0000 (13:17 +0300)]
Export semaphore symbols
Signed-off-by: Teodora Serbanescu <teo.serbanescu16@gmail.com>
Reviewed-by: Felipe Huici <felipe.huici@neclab.eu>
Costin Lupu [Tue, 9 Jul 2019 09:09:33 +0000 (12:09 +0300)]
Add pthread_atfork() function
For now, Unikraft does not support fork(), so we will just print an
warning saying that.
Signed-off-by: Costin Lupu <costin.lupu@cs.pub.ro>
Reviewed-by: Felipe Huici <felipe.huici@neclab.eu>
Costin Lupu [Wed, 5 Jun 2019 08:01:20 +0000 (11:01 +0300)]
Makefile.uk: Restrict pointer-to-int-cast and int-to-pointer-cast warnings only to C
Otherwise we get warnings that these warnings are only C specific.
Signed-off-by: Costin Lupu <costin.lupu@cs.pub.ro>
Reviewed-by: Felipe Huici <felipe.huici@neclab.eu>
Costin Lupu [Wed, 5 Jun 2019 08:01:19 +0000 (11:01 +0300)]
patches: Add patch for making pte_handle a C++ structure
The CXX library requires pthe_handle to be defined as a C++ structure. This
patch also adds the overloaded operators needed by the CXX library.
Signed-off-by: Teodora Serbanescu <teo.serbanescu16@gmail.com>
Reviewed-by: Felipe Huici <felipe.huici@neclab.eu>
Teodora Serbanescu [Mon, 3 Jun 2019 15:16:40 +0000 (18:16 +0300)]
include/pthread.h: Guard C code for C++
Signed-off-by: Teodora Serbanescu <teo.serbanescu16@gmail.com>
Reviewed-by: Florian Schmidt <florian.schmidt@neclab.eu>
Costin Lupu [Mon, 3 Jun 2019 15:16:39 +0000 (18:16 +0300)]
Add missing pthread functions
This patch adds some missing functions for updating threads attributes,
such as the thread name or the stack address and size. Currently we
support only the fixed stack size of 64KB.
These new functions are used by the Ruby interpreter.
Signed-off-by: Costin Lupu <costin.lupu@cs.pub.ro>
Reviewed-by: Florian Schmidt <florian.schmidt@neclab.eu>
Costin Lupu [Mon, 3 Jun 2019 15:16:38 +0000 (18:16 +0300)]
Disable atomic functions
We disable the atomic function given that we are using them as macros.
Signed-off-by: Costin Lupu <costin.lupu@cs.pub.ro>
Reviewed-by: Florian Schmidt <florian.schmidt@neclab.eu>
Costin Lupu [Mon, 3 Jun 2019 15:16:37 +0000 (18:16 +0300)]
patches: Fix atomic operations
We use atomic operations as macros because pte uses them for both int
and long types.
Signed-off-by: Costin Lupu <costin.lupu@cs.pub.ro>
Reviewed-by: Florian Schmidt <florian.schmidt@neclab.eu>
Costin Lupu [Mon, 3 Jun 2019 15:16:36 +0000 (18:16 +0300)]
Initial port of pthread-embedded to Unikraft
This is our initial port of pthread-embedded to Unikraft as external
library. For now you need newlib to make it work. When adding the
library in the dependency list, pthread-embedded should stay before
newlib (e.g. ...:$(UK_LIBS)/pthread-embedded:$(UK_LIBS)/newlib.git:...).
Signed-off-by: Costin Lupu <costin.lupu@cs.pub.ro>
Reviewed-by: Florian Schmidt <florian.schmidt@neclab.eu>
Costin Lupu [Sun, 10 Mar 2019 08:12:24 +0000 (10:12 +0200)]
patches: Add patches for proper building of original library
Current patches include bugfixes and refinements in the original code.
Signed-off-by: Costin Lupu <costin.lupu@cs.pub.ro>
Reviewed-by: Florian Schmidt <florian.schmidt@neclab.eu>
Costin Lupu [Mon, 3 Jun 2019 15:16:34 +0000 (18:16 +0300)]
Add .gitignore
Signed-off-by: Costin Lupu <costin.lupu@cs.pub.ro>
Reviewed-by: Florian Schmidt <florian.schmidt@neclab.eu>
Costin Lupu [Mon, 3 Jun 2019 15:16:33 +0000 (18:16 +0300)]
Add documentation
Signed-off-by: Costin Lupu <costin.lupu@cs.pub.ro>
Reviewed-by: Florian Schmidt <florian.schmidt@neclab.eu>
Costin Lupu [Sat, 9 Mar 2019 18:10:02 +0000 (20:10 +0200)]
Initial commit (empty)