proc_p.h File Reference

Internal scheduler structures and definitions for processes. More...

#include <cfg/compiler.h>
#include <cpu/types.h>
#include <mware/list.h>
#include <config_kern.h>
#include <appconfig.h>

Go to the source code of this file.


Defines

#define SCHED_ENQUEUE(proc)   ADDTAIL(&ProcReadyList, &(proc)->link)
 Enqueue a task in the ready list.
Flags for Process.flags.
#define PF_FREESTACK   BV(0)
 Free the stack when process dies.

Functions

void proc_schedule (void)
 Schedule to another process *without* adding the current to the ready list.

Variables

REGISTER Process * CurrentProcess
 Track running processes.
REGISTER List ProcReadyList
 Track ready processes.

Detailed Description

Internal scheduler structures and definitions for processes.

Version:
Id
proc_p.h 930 2007-10-23 14:48:48Z batt

Author:
Bernardo Innocenti <bernie@develer.com>

Definition in file proc_p.h.


Define Documentation

#define SCHED_ENQUEUE ( proc   )     ADDTAIL(&ProcReadyList, &(proc)->link)

Enqueue a task in the ready list.

Definition at line 100 of file proc_p.h.


Function Documentation

void proc_schedule ( void   ) 

Schedule to another process *without* adding the current to the ready list.

Schedule to another process *without* adding the current to the ready list.

Saving and restoring the context on the stack is done by a CPU-dependent support routine which must usually be written in assembly.

Definition at line 244 of file proc.c.


Variable Documentation

REGISTER Process* CurrentProcess

Track running processes.

Definition at line 73 of file proc.c.

REGISTER List ProcReadyList

Track ready processes.

Definition at line 74 of file proc.c.