/* a.out header constants (see a.out.h, if you have it) */
-#if (CHIP == INTEL)
+#if (_MINIX_CHIP == _CHIP_INTEL)
#define A_OUT 0x0301
#define SPLIT 0x0420
-#endif
-
-#if (CHIP == M68000)
-#define A_OUT 0x0301
-#define SPLIT 0x0B20
-#endif
-
-#if (CHIP == SPARC)
-#define A_OUT 0x0301
-#define SPLIT 0x0B20
+#else
+#error only chip == intel is reasonable.
#endif
/* Each buffer is 1k. In WORD mode 16 words (32 bytes) can be */
#define BOX_BOT '\334' /* Filled lower half */
#endif
-#if (CHIP == M68000)
-/* Please change these. */
-#define BOX_CLR ' ' /* Empty box */
-#define BOX_ALL '=' /* Filled box */
-#define BOX_TOP '-' /* Filled upper half */
-#define BOX_BOT '_' /* Filled lower half */
-#endif
-
-#if (CHIP == SPARC)
-/* Please change these. */
-#define BOX_CLR ' ' /* Empty box */
-#define BOX_ALL '=' /* Filled box */
-#define BOX_TOP '-' /* Filled upper half */
-#define BOX_BOT '_' /* Filled lower half */
-#endif
-
/* Move positions for the output display. */
#define STATUS_COLUMN 2
#undef printf /* defined as printk in <minix/const.h> */
-#if (CHIP == M68000)
-#define __mc68000__ /* controls processor-dependent stuff */
-#error "only the MINIX_ST 1.5.x implementation works on 68K's"
-#endif
-
-#if (CHIP == INTEL)
+#if (_MINIX_CHIP == _CHIP_INTEL)
#if (MACHINE == IBM_PC)
#define MINIX_PC
#else
#define CSEG 0x2E /* 8088 through 80386 */
#define DSEG 0x3E
-#if (CHIP == INTEL )
+#if (_MINIX_CHIP == _CHIP_INTEL )
#ifdef __i86
#define N_REG16 2
#endif
#endif
#endif
-#if (CHIP == INTEL )
+#if (_MINIX_CHIP == _CHIP_INTEL )
#define ADDA(l) ((u16_t) (l) == 0xC481)
#ifdef __i386
#include "minix/config.h"
/*#define BLOCK_SIZE 1024*/
-#define LITTLE_ENDIAN (CHIP == INTEL)
-#define USE_SHADOWING (CHIP == M68000)
+#define LITTLE_ENDIAN (_MINIX_CHIP == _CHIP_INTEL)
+#define USE_SHADOWING (_MINIX_CHIP == _CHIP_M68000)
#else
#define LITTLE_ENDIAN 0
#define USE_SHADOWING 0
/*===========================================================================*
* There are no user-settable parameters after this line *
*===========================================================================*/
-/* Set the CHIP type based on the machine selected. The symbol CHIP is actually
- * indicative of more than just the CPU. For example, machines for which
- * CHIP == INTEL are expected to have 8259A interrrupt controllers and the
- * other properties of IBM PC/XT/AT/386 types machines in general. */
-#define INTEL _CHIP_INTEL /* CHIP type for PC, XT, AT, 386 and clones */
-#define M68000 _CHIP_M68000 /* CHIP type for Atari, Amiga, Macintosh */
-#define SPARC _CHIP_SPARC /* CHIP type for SUN-4 (e.g. SPARCstation) */
-
/* Set the FP_FORMAT type based on the machine selected, either hw or sw */
#define FP_NONE _FP_NONE /* no floating point support */
#define FP_IEEE _FP_IEEE /* conform IEEE floating point standard */
-/* _MINIX_CHIP is defined in sys_config.h. */
-#define CHIP _MINIX_CHIP
-
/* _MINIX_FP_FORMAT is defined in sys_config.h. */
#define FP_FORMAT _MINIX_FP_FORMAT
#ifndef _MINIX_CONST_H
#define _MINIX_CONST_H
-#ifndef CHIP
-#error CHIP is not defined
+#ifndef _MINIX_CHIP
+#error _MINIX_CHIP is not defined
#endif
/* The UNUSED annotation tells the compiler or lint not to complain
#define HAVE_SCATTERED_IO 1 /* scattered I/O is now standard */
/* Memory is allocated in clicks. */
-#if (CHIP == INTEL)
+#if (_MINIX_CHIP == _CHIP_INTEL)
#define CLICK_SIZE 4096 /* unit in which memory is allocated */
#define CLICK_SHIFT 12 /* log2 of CLICK_SIZE */
-#endif
-
-#if (CHIP == SPARC) || (CHIP == M68000)
-#define CLICK_SIZE 4096 /* unit in which memory is allocated */
-#define CLICK_SHIFT 12 /* log2 of CLICK_SIZE */
+#else
+#error No reasonable CHIP setting.
#endif
/* Click alignment macros. */