X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fkern%2Fsignal.c;h=dbe1261f2053381e7a4127e67ee084504f00bca3;hb=cf5af2b25de263a964bf29a7465cdfe536d32e59;hp=a22249429d885ed5dd62119773e3dd94e79c2fff;hpb=9b714f49120ffe7674765dc5e1248430b22ae593;p=bertos.git diff --git a/bertos/kern/signal.c b/bertos/kern/signal.c index a2224942..dbe1261f 100644 --- a/bertos/kern/signal.c +++ b/bertos/kern/signal.c @@ -100,8 +100,9 @@ #include "signal.h" -#include +#include "cfg/cfg_timer.h" #include +#include #include #include @@ -110,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. * @@ -140,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