projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactor in order to test also negative altitude values.
[bertos.git]
/
bertos
/
kern
/
signal.c
diff --git
a/bertos/kern/signal.c
b/bertos/kern/signal.c
index 71ccf67ada7dd6090ecc5a1420a7580567dda67d..139e69da0274d4d0c1f3f2331a779a8fe36c9732 100644
(file)
--- a/
bertos/kern/signal.c
+++ b/
bertos/kern/signal.c
@@
-251,9
+251,6
@@
INLINE void __sig_signal(Process *proc, sigmask_t sigs, bool wakeup)
{
cpu_flags_t flags;
{
cpu_flags_t flags;
- if (UNLIKELY(proc == current_process))
- return;
-
IRQ_SAVE_DISABLE(flags);
/* Set the signals */
IRQ_SAVE_DISABLE(flags);
/* Set the signals */
@@
-262,6
+259,8
@@
INLINE void __sig_signal(Process *proc, sigmask_t sigs, bool wakeup)
/* Check if process needs to be awoken */
if (proc->sig_recv & proc->sig_wait)
{
/* Check if process needs to be awoken */
if (proc->sig_recv & proc->sig_wait)
{
+ ASSERT(proc != current_process);
+
proc->sig_wait = 0;
if (wakeup)
proc_wakeup(proc);
proc->sig_wait = 0;
if (wakeup)
proc_wakeup(proc);