OpenCores
URL https://opencores.org/ocsvn/c0or1k/c0or1k/trunk

Subversion Repositories c0or1k

[/] [c0or1k/] [trunk/] [include/] [l4/] [api/] [thread.h] - Blame information for rev 7

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 drasko
#ifndef __API_THREAD_H__
2
#define __API_THREAD_H__
3
 
4
#define THREAD_ACTION_MASK      0xF0000000
5
#define THREAD_CREATE           0x00000000
6
#define THREAD_RUN              0x10000000
7
#define THREAD_SUSPEND          0x20000000
8
#define THREAD_DESTROY          0x30000000
9
#define THREAD_RECYCLE          0x40000000
10
#define THREAD_WAIT             0x50000000
11
 
12
#define THREAD_SHARE_MASK       0x00F00000
13
#define THREAD_SPACE_MASK       0x0F000000
14
#define THREAD_CREATE_MASK      (THREAD_SHARE_MASK | THREAD_SPACE_MASK)
15
#define TC_SHARE_CAPS           0x00100000 /* Share all thread capabilities */
16
#define TC_SHARE_UTCB           0x00200000 /* Share utcb location (same space */
17
#define TC_SHARE_GROUP          0x00400000 /* Share thread group id */
18
 
19
#define TC_SHARE_SPACE          0x01000000 /* New thread, use given space */
20
#define TC_COPY_SPACE           0x02000000 /* New thread, copy given space */
21
#define TC_NEW_SPACE            0x04000000 /* New thread, new space */
22
 
23
/* #define THREAD_USER_MASK     0x000F0000 Reserved for userspace */
24
#define THREAD_EXIT_MASK        0x0000FFFF /* Thread exit code */
25
#endif /* __API_THREAD_H__ */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.