SLEEPQUEUE(9): Port to RTEMS

This commit is contained in:
Sebastian Huber
2015-03-24 10:02:45 +01:00
parent 9975839a12
commit 8475e7aa0a
9 changed files with 313 additions and 24 deletions

View File

@@ -43,20 +43,11 @@
#include <rtems/bsd/sys/param.h>
#include <rtems/bsd/sys/types.h>
#include <sys/proc.h>
#include <sys/queue.h>
#include <rtems/score/threadq.h>
#include <rtems.h>
#define BSD_TASK_NAME rtems_build_name('_', 'B', 'S', 'D')
struct sleepqueue {
Thread_queue_Control sq_blocked;
LIST_ENTRY(sleepqueue) sq_hash;
LIST_HEAD(, sleepqueue) sq_free;
void *sq_wchan;
};
struct thread *
rtems_bsd_get_thread(const Thread_Control *thread);