sys_config.h

Go to the documentation of this file.
00001 #ifndef _MINIX_SYS_CONFIG_H
00002 #define _MINIX_SYS_CONFIG_H 1
00003 
00004 /*===========================================================================*
00005  *              This section contains user-settable parameters               *
00006  *===========================================================================*/
00007 #define _MINIX_MACHINE       _MACHINE_IBM_PC
00008 
00009 #define _MACHINE_IBM_PC             1   /* any  8088 or 80x86-based system */
00010 #define _MACHINE_SUN_4             40   /* any Sun SPARC-based system */
00011 #define _MACHINE_SUN_4_60          40   /* Sun-4/60 (aka SparcStation 1 or Campus) */
00012 #define _MACHINE_ATARI             60   /* ATARI ST/STe/TT (68000/68030) */
00013 #define _MACHINE_MACINTOSH         62   /* Apple Macintosh (68000) */
00014 
00015 /* Word size in bytes (a constant equal to sizeof(int)). */
00016 #if __ACK__ || __GNUC__
00017 #define _WORD_SIZE      _EM_WSIZE
00018 #define _PTR_SIZE       _EM_WSIZE
00019 #endif
00020 
00021 #define _NR_PROCS       100
00022 #define _NR_SYS_PROCS   32
00023 #define _NR_HOLES (2*_NR_PROCS+4)  /* No. of memory holes maintained by PM */
00024 
00025 /* Set the CHIP type based on the machine selected. The symbol CHIP is actually
00026  * indicative of more than just the CPU.  For example, machines for which
00027  * CHIP == INTEL are expected to have 8259A interrrupt controllers and the
00028  * other properties of IBM PC/XT/AT/386 types machines in general. */
00029 #define _CHIP_INTEL             1       /* CHIP type for PC, XT, AT, 386 and clones */
00030 #define _CHIP_M68000            2       /* CHIP type for Atari, Amiga, Macintosh    */
00031 #define _CHIP_SPARC             3       /* CHIP type for SUN-4 (e.g. SPARCstation)  */
00032 
00033 /* Set the FP_FORMAT type based on the machine selected, either hw or sw    */
00034 #define _FP_NONE                  0     /* no floating point support                */
00035 #define _FP_IEEE                  1     /* conform IEEE floating point standard     */
00036 
00037 #if (_MINIX_MACHINE == _MACHINE_IBM_PC)
00038 #define _MINIX_CHIP          _CHIP_INTEL
00039 #endif
00040 
00041 #if (_MINIX_MACHINE == _MACHINE_ATARI) || (_MINIX_MACHINE == _MACHINE_MACINTOSH)
00042 #define _MINIX_CHIP         _CHIP_M68000
00043 #endif
00044 
00045 #if (_MINIX_MACHINE == _MACHINE_SUN_4) || (_MINIX_MACHINE == _MACHINE_SUN_4_60)
00046 #define _MINIX_CHIP          _CHIP_SPARC
00047 #define _MINIX_FP_FORMAT   _FP_IEEE
00048 #endif
00049 
00050 #if (_MINIX_MACHINE == _MACHINE_ATARI) || (_MINIX_MACHINE == _MACHINE_SUN_4)
00051 #define _ASKDEV            1    /* ask for boot device */
00052 #define _FASTLOAD          1    /* use multiple block transfers to init ram */
00053 #endif
00054 
00055 #ifndef _MINIX_FP_FORMAT
00056 #define _MINIX_FP_FORMAT   _FP_NONE
00057 #endif
00058 
00059 #ifndef _MINIX_MACHINE
00060 error "In <minix/sys_config.h> please define _MINIX_MACHINE"
00061 #endif
00062 
00063 #ifndef _MINIX_CHIP
00064 error "In <minix/sys_config.h> please define _MINIX_MACHINE to have a legal value"
00065 #endif
00066 
00067 #if (_MINIX_MACHINE == 0)
00068 error "_MINIX_MACHINE has incorrect value (0)"
00069 #endif
00070 
00071 /* Kernel debug checks */
00072 #define DEBUG_LOCK_CHECK 0      /* Interrupt Lock/unlock sanity checking. */
00073 
00074 #endif /* _MINIX_SYS_CONFIG_H */

Generated on Fri Apr 14 22:57:20 2006 for minix by  doxygen 1.4.6