diff options
author | Patrick Williams <iawillia@us.ibm.com> | 2010-06-07 16:39:45 -0500 |
---|---|---|
committer | Patrick Williams <iawillia@us.ibm.com> | 2010-06-07 16:39:45 -0500 |
commit | 9a4698af6ee4c095a97b8800d2d5f0a4bb282b15 (patch) | |
tree | 9f5241ee1f91d21c8043b359d7bfaeb309ecd5b8 /src/include/sys/task.h | |
parent | aa1db69f1de27bba8ee5e128f717557780f21e0d (diff) | |
download | talos-hostboot-9a4698af6ee4c095a97b8800d2d5f0a4bb282b15.tar.gz talos-hostboot-9a4698af6ee4c095a97b8800d2d5f0a4bb282b15.zip |
Add task control syscalls.
Diffstat (limited to 'src/include/sys/task.h')
-rw-r--r-- | src/include/sys/task.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/include/sys/task.h b/src/include/sys/task.h new file mode 100644 index 000000000..84ddb10f9 --- /dev/null +++ b/src/include/sys/task.h @@ -0,0 +1,20 @@ +#ifndef __SYS_TASK_H +#define __SYS_TASK_H + +#include <sys/syscall.h> + +#ifdef __cplusplus +extern "C" +{ +#endif + +void task_yield(); +int task_create(void(*)(void*), void*); +void task_end(); + +uint64_t task_gettid(); + +#ifdef __cplusplus +} +#endif +#endif |