forked from unikraft/lib-pthread-embedded
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib/pthread-embedded: Support for uksignal
This patch is an update of the original. Signed-off-by: Mihai Pogonaru <[email protected]> Signed-off-by: Teodora Serbanescu <[email protected]> Signed-off-by: Felipe Huici <[email protected]> Reviewed-by: ARGINT DRAGOS IULIAN <[email protected]>
- Loading branch information
Bernard Rizzo
authored and
Sharan Santhanam
committed
Feb 3, 2021
1 parent
49a2433
commit 2dd7129
Showing
6 changed files
with
63 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
patches/0012-Add_pthread_kill_when_uk_signals_are_enabled.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
diff --git a/pthread_kill.c b/pthread_kill.c | ||
index 3a6daf6..4ea7448 100644 | ||
--- a/pthread_kill.c | ||
+++ b/pthread_kill.c | ||
@@ -47,7 +47,9 @@ | ||
#include "pthread.h" | ||
#include "implement.h" | ||
|
||
-#ifdef __hermit__ | ||
+#include <uk/config.h> | ||
+ | ||
+#if CONFIG_LIBUKSIGNAL | ||
int pte_kill(pte_osThreadHandle threadId, int sig); | ||
#endif | ||
|
||
@@ -98,7 +100,7 @@ pthread_kill (pthread_t thread, int sig) | ||
|
||
pte_osMutexUnlock(pte_thread_reuse_lock); | ||
|
||
-#ifdef __hermit__ | ||
+#if CONFIG_LIBUKSIGNAL | ||
result = pte_kill(tp->threadId, sig); | ||
#else | ||
if (0 == result && 0 != sig) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters