00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef __CONVEN_TASK_H__
00011 #define __CONVEN_TASK_H__ 1
00012 #include <libc.h>
00013
00014
00015
00016
00017 typedef enum
00018 {
00019 TASK_EZERO = 0,
00020
00021 TASK_ASCREATE_FAILED = 1000,
00022
00023 TASK_LOAD_FAILED = 2000,
00024
00025 TASK_THREAD_FAILED = 3000,
00026
00027 } t_task_status;
00028
00029
00030
00031 t_task_status task_create(char *name, char *filename, vaddr_t mapaddr, u_int32_t eip, int nbstkpgs, int for_cpu, u_int sel, u_int32_t ascreateopts, u_int32_t loadopts, u_int32_t threadopts, char *parambuf, int paramlen, struct s_tcb_export *tcb);
00032 #endif