]> xenbits.xensource.com Git - unikraft/libs/pthread-embedded.git/log
unikraft/libs/pthread-embedded.git
5 years agoExport semaphore symbols
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>
5 years agoAdd pthread_atfork() function
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>
5 years agoMakefile.uk: Restrict pointer-to-int-cast and int-to-pointer-cast warnings only to C
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>
5 years agopatches: Add patch for making pte_handle a C++ structure
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>
5 years agoinclude/pthread.h: Guard C code for C++
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>
5 years agoAdd missing pthread functions
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>
5 years agoDisable atomic functions
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>
5 years agopatches: Fix atomic operations
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>
5 years agoInitial port of pthread-embedded to Unikraft
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>
5 years agopatches: Add patches for proper building of original library
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>
5 years agoAdd .gitignore
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>
5 years agoAdd documentation
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>
6 years agoInitial commit (empty)
Costin Lupu [Sat, 9 Mar 2019 18:10:02 +0000 (20:10 +0200)]
Initial commit (empty)