X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fkern%2Fsignal.c;h=dbe1261f2053381e7a4127e67ee084504f00bca3;hb=cf5af2b25de263a964bf29a7465cdfe536d32e59;hp=58863ffa5670bdda9f25ff06e201c4e73f85a598;hpb=e62ca0b357f09804d7d894949df44224c9d74bb7;p=bertos.git diff --git a/bertos/kern/signal.c b/bertos/kern/signal.c index 58863ffa..dbe1261f 100644 --- a/bertos/kern/signal.c +++ b/bertos/kern/signal.c @@ -100,8 +100,10 @@ #include "signal.h" -#include +#include "cfg/cfg_timer.h" #include +#include + #include #include #include @@ -109,6 +111,9 @@ #if CONFIG_KERN_SIGNALS +// Check config dependencies +CONFIG_DEPEND(CONFIG_KERN_SIGNALS, CONFIG_KERN); + /** * Check if any of the signals in \a sigs has occurred and clear them. * @@ -139,7 +144,7 @@ sigmask_t sig_wait(sigmask_t sigs) /* Sleeping with IRQs disabled or preemption forbidden is illegal */ IRQ_ASSERT_ENABLED(); - ASSERT(proc_allowed()); + ASSERT(proc_preemptAllowed()); /* * This is subtle: there's a race condition where a concurrent