Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/proc.h
Show First 20 Lines • Show All 325 Lines • ▼ Show 20 Lines | |||||
#define td_endcopy td_pcb | #define td_endcopy td_pcb | ||||
/* | /* | ||||
* Fields that must be manually set in fork1() or create_thread() | * Fields that must be manually set in fork1() or create_thread() | ||||
* or already have been set in the allocator, constructor, etc. | * or already have been set in the allocator, constructor, etc. | ||||
*/ | */ | ||||
struct pcb *td_pcb; /* (k) Kernel VA of pcb and kstack. */ | struct pcb *td_pcb; /* (k) Kernel VA of pcb and kstack. */ | ||||
enum td_states { | enum td_states { | ||||
TDS_INACTIVE = 0x0, | TDS_UNUSED = 0x0, | ||||
TDS_INACTIVE, | |||||
TDS_INHIBITED, | TDS_INHIBITED, | ||||
TDS_CAN_RUN, | TDS_CAN_RUN, | ||||
TDS_RUNQ, | TDS_RUNQ, | ||||
TDS_RUNNING | TDS_RUNNING | ||||
} td_state; /* (t) thread state */ | } td_state; /* (t) thread state */ | ||||
union { | union { | ||||
register_t tdu_retval[2]; | register_t tdu_retval[2]; | ||||
off_t tdu_off; | off_t tdu_off; | ||||
▲ Show 20 Lines • Show All 870 Lines • Show Last 20 Lines |