Task Control Block (TCB)

First learned in SE350 - Operating Systems labs.

Stores all relevant information required to run a particular task. The following definition of TCB is considered a starting point:

typedef struct task_control_block{
	void (*ptask)(void* args); // entry address
	U32 stack_high; // starting address (high address)
	task_t tid; // task ID
	u8 state; // task's state
	U16 stack_size; // stack size. Must be a multiple of 8
} TCB;