projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use a better name.
[bertos.git]
/
bertos
/
kern
/
signal.c
diff --git
a/bertos/kern/signal.c
b/bertos/kern/signal.c
index 58863ffa5670bdda9f25ff06e201c4e73f85a598..dbe1261f2053381e7a4127e67ee084504f00bca3 100644
(file)
--- a/
bertos/kern/signal.c
+++ b/
bertos/kern/signal.c
@@
-100,8
+100,10
@@
#include "signal.h"
#include "signal.h"
-#include
<cfg/cfg_timer.h>
+#include
"cfg/cfg_timer.h"
#include <cfg/debug.h>
#include <cfg/debug.h>
+#include <cfg/depend.h>
+
#include <cpu/irq.h>
#include <kern/proc.h>
#include <kern/proc_p.h>
#include <cpu/irq.h>
#include <kern/proc.h>
#include <kern/proc_p.h>
@@
-109,6
+111,9
@@
#if CONFIG_KERN_SIGNALS
#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.
*
/**
* 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();
/* Sleeping with IRQs disabled or preemption forbidden is illegal */
IRQ_ASSERT_ENABLED();
- ASSERT(proc_
a
llowed());
+ ASSERT(proc_
preemptA
llowed());
/*
* This is subtle: there's a race condition where a concurrent
/*
* This is subtle: there's a race condition where a concurrent