-
Notifications
You must be signed in to change notification settings - Fork 0
/
param.h
24 lines (20 loc) · 873 Bytes
/
param.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#define NPROC 64 // maximum number of processes
#define KSTACKSIZE 4096 // size of per-process kernel stack
#define NOFILE 16 // open files per process
#define NFILE 100 // open files per system
#define NBUF 10 // size of disk block cache
#define NINODE 50 // maximum number of active i-nodes
#define NDEV 10 // maximum major device number
#define ROOTDEV 1 // device number of file system root disk
#define TRA 0xff000020
#define EXPEVT 0xff000024
#define INTEVT 0xff000028
#define SR_BL_DISABLE 0x10000000
#define SR_BL_ENABLE 0xefffffff
#define SR_BL_MASK 0x10000000
#define SR_MDRBBL_MASK 0x70000000
#define SR_IMASK_MASK 0x000000f0
#define SR_IMASK_CLEAR 0xffffff0f
#define SR_RB_MASK 0x20000000
#define STACK_SIZE 0x1000
#define PHYSTOP 0x8d000000 // use phys mem up to here as free pool