source: branches/minix3-book/include/minix/sys_config.h@ 4

Last change on this file since 4 was 4, checked in by Mattia Monga, 13 years ago

Importazione sorgenti libro

File size: 1.8 KB
Line 
1#ifndef _MINIX_SYS_CONFIG_H
2#define _MINIX_SYS_CONFIG_H 1
3
4/* This is a modified sys_config.h for compiling a small Minix system
5 * with only the options described in the text, Operating Systems Design and
6 * Implementation, 3rd edition. See the sys_config.h in the full
7 * source code directory for information on alternatives omitted here.
8 */
9
10/*===========================================================================*
11 * This section contains user-settable parameters *
12 *===========================================================================*/
13#define _MINIX_MACHINE _MACHINE_IBM_PC
14
15#define _MACHINE_IBM_PC 1 /* any 8088 or 80x86-based system */
16
17/* Word size in bytes (a constant equal to sizeof(int)). */
18#if __ACK__ || __GNUC__
19#define _WORD_SIZE _EM_WSIZE
20#define _PTR_SIZE _EM_WSIZE
21#endif
22
23#define _NR_PROCS 64
24#define _NR_SYS_PROCS 32
25
26/* Set the CHIP type based on the machine selected. The symbol CHIP is actually
27 * indicative of more than just the CPU. For example, machines for which
28 * CHIP == INTEL are expected to have 8259A interrrupt controllers and the
29 * other properties of IBM PC/XT/AT/386 types machines in general. */
30#define _CHIP_INTEL 1 /* CHIP type for PC, XT, AT, 386 and clones */
31
32/* Set the FP_FORMAT type based on the machine selected, either hw or sw */
33#define _FP_NONE 0 /* no floating point support */
34#define _FP_IEEE 1 /* conform IEEE floating point standard */
35
36#define _MINIX_CHIP _CHIP_INTEL
37
38#define _MINIX_FP_FORMAT _FP_NONE
39
40#ifndef _MINIX_MACHINE
41error "In <minix/sys_config.h> please define _MINIX_MACHINE"
42#endif
43
44#ifndef _MINIX_CHIP
45error "In <minix/sys_config.h> please define _MINIX_MACHINE to have a legal value"
46#endif
47
48#if (_MINIX_MACHINE == 0)
49error "_MINIX_MACHINE has incorrect value (0)"
50#endif
51
52#endif /* _MINIX_SYS_CONFIG_H */
53
54
Note: See TracBrowser for help on using the repository browser.