2005-05-13 10:57:08 +02:00
|
|
|
/* Constants used by the Process Manager. */
|
2005-05-03 17:35:52 +02:00
|
|
|
|
|
|
|
#define NO_MEM ((phys_clicks) 0) /* returned by alloc_mem() with mem is up */
|
|
|
|
|
|
|
|
#if (CHIP == INTEL && _WORD_SIZE == 2)
|
|
|
|
/* These definitions are used in size_ok and are not needed for 386.
|
|
|
|
* The 386 segment granularity is 1 for segments smaller than 1M and 4096
|
|
|
|
* above that.
|
|
|
|
*/
|
|
|
|
#define PAGE_SIZE 16 /* how many bytes in a page (s.b.HCLICK_SIZE)*/
|
|
|
|
#define MAX_PAGES 4096 /* how many pages in the virtual addr space */
|
|
|
|
#endif
|
|
|
|
|
2005-06-24 18:21:21 +02:00
|
|
|
#define NR_PIDS 65536 /* process ids range from 0 to NR_PIDS-1 */
|
|
|
|
|
|
|
|
#define PM_PID 0 /* PM's process id number */
|
|
|
|
#define PM_PARENT -1 /* PM's parent process slot */
|
|
|
|
|
|
|
|
#define INIT_PID 1 /* INIT's process id number */
|
|
|
|
|
|
|
|
|
|
|
|
#define DEBUG(x,y) if ((x)) { (y); }
|