aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/cpu.h2
-rw-r--r--include/sys/schedule.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/include/cpu.h b/include/cpu.h
index 9bda3e8..393fe2f 100644
--- a/include/cpu.h
+++ b/include/cpu.h
@@ -94,5 +94,7 @@ static inline void* getirqstack(void)
#define SYS_FREE_STACK 3
#define SYS_LOCK 4
#define SYS_UNLOCK 5
+#define SYS_SEMAPHORE_P 6
+#define SYS_SEMAPHORE_V 7
#endif
diff --git a/include/sys/schedule.h b/include/sys/schedule.h
index 12c8fec..d0d938c 100644
--- a/include/sys/schedule.h
+++ b/include/sys/schedule.h
@@ -62,6 +62,8 @@ extern void schedule(void);
extern void cleanup(void);
void yield(void);
void sched_mutex_yield(void* m);
+void sched_semaphore_yield(void* s);
void sched_mutex_resurrect(void* m);
+void sched_semaphore_resurrect(void* s);
#endif