 6f77685609
			
		
	
	
		6f77685609
		
	
	
	
	
		
			
			mainly in the kernel and headers. This split based on work by Ingmar Alting <iaalting@cs.vu.nl> done for his Minix PowerPC architecture port. . kernel does not program the interrupt controller directly, do any other architecture-dependent operations, or contain assembly any more, but uses architecture-dependent functions in arch/$(ARCH)/. . architecture-dependent constants and types defined in arch/$(ARCH)/include. . <ibm/portio.h> moved to <minix/portio.h>, as they have become, for now, architecture-independent functions. . int86, sdevio, readbios, and iopenable are now i386-specific kernel calls and live in arch/i386/do_* now. . i386 arch now supports even less 86 code; e.g. mpx86.s and klib86.s have gone, and 'machine.protected' is gone (and always taken to be 1 in i386). If 86 support is to return, it should be a new architecture. . prototypes for the architecture-dependent functions defined in kernel/arch/$(ARCH)/*.c but used in kernel/ are in kernel/proto.h . /etc/make.conf included in makefiles and shell scripts that need to know the building architecture; it defines ARCH=<arch>, currently only i386. . some basic per-architecture build support outside of the kernel (lib) . in clock.c, only dequeue a process if it was ready . fixes for new include files files deleted: . mpx/klib.s - only for choosing between mpx/klib86 and -386 . klib86.s - only for 86 i386-specific files files moved (or arch-dependent stuff moved) to arch/i386/: . mpx386.s (entry point) . klib386.s . sconst.h . exception.c . protect.c . protect.h . i8269.c
		
			
				
	
	
		
			75 lines
		
	
	
		
			2.7 KiB
		
	
	
	
		
			C
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			75 lines
		
	
	
		
			2.7 KiB
		
	
	
	
		
			C
		
	
	
		
			Executable File
		
	
	
	
	
| #ifndef _MINIX_SYS_CONFIG_H
 | |
| #define _MINIX_SYS_CONFIG_H 1
 | |
| 
 | |
| /*===========================================================================*
 | |
|  *		This section contains user-settable parameters		     *
 | |
|  *===========================================================================*/
 | |
| #define _MINIX_MACHINE       _MACHINE_IBM_PC
 | |
| 
 | |
| #define _MACHINE_IBM_PC             1	/* any  8088 or 80x86-based system */
 | |
| #define _MACHINE_SUN_4             40	/* any Sun SPARC-based system */
 | |
| #define _MACHINE_SUN_4_60	   40	/* Sun-4/60 (aka SparcStation 1 or Campus) */
 | |
| #define _MACHINE_ATARI             60	/* ATARI ST/STe/TT (68000/68030) */
 | |
| #define _MACHINE_MACINTOSH         62	/* Apple Macintosh (68000) */
 | |
| 
 | |
| /* Word size in bytes (a constant equal to sizeof(int)). */
 | |
| #if __ACK__ || __GNUC__
 | |
| #define _WORD_SIZE	_EM_WSIZE
 | |
| #define _PTR_SIZE	_EM_WSIZE
 | |
| #endif
 | |
| 
 | |
| #define _NR_PROCS	100
 | |
| #define _NR_SYS_PROCS	32
 | |
| #define _NR_HOLES (2*_NR_PROCS+4)  /* No. of memory holes maintained by PM */
 | |
| 
 | |
| /* 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 _CHIP_INTEL             1	/* CHIP type for PC, XT, AT, 386 and clones */
 | |
| #define _CHIP_M68000            2	/* CHIP type for Atari, Amiga, Macintosh    */
 | |
| #define _CHIP_SPARC             3	/* 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		  0	/* no floating point support                */
 | |
| #define _FP_IEEE		  1	/* conform IEEE floating point standard     */
 | |
| 
 | |
| #if (_MINIX_MACHINE == _MACHINE_IBM_PC)
 | |
| #define _MINIX_CHIP          _CHIP_INTEL
 | |
| #endif
 | |
| 
 | |
| #if (_MINIX_MACHINE == _MACHINE_ATARI) || (_MINIX_MACHINE == _MACHINE_MACINTOSH)
 | |
| #define _MINIX_CHIP         _CHIP_M68000
 | |
| #endif
 | |
| 
 | |
| #if (_MINIX_MACHINE == _MACHINE_SUN_4) || (_MINIX_MACHINE == _MACHINE_SUN_4_60)
 | |
| #define _MINIX_CHIP          _CHIP_SPARC
 | |
| #define _MINIX_FP_FORMAT   _FP_IEEE
 | |
| #endif
 | |
| 
 | |
| #if (_MINIX_MACHINE == _MACHINE_ATARI) || (_MINIX_MACHINE == _MACHINE_SUN_4)
 | |
| #define _ASKDEV            1	/* ask for boot device */
 | |
| #define _FASTLOAD          1	/* use multiple block transfers to init ram */
 | |
| #endif
 | |
| 
 | |
| #ifndef _MINIX_FP_FORMAT
 | |
| #define _MINIX_FP_FORMAT   _FP_NONE
 | |
| #endif
 | |
| 
 | |
| #ifndef _MINIX_MACHINE
 | |
| error "In <minix/sys_config.h> please define _MINIX_MACHINE"
 | |
| #endif
 | |
| 
 | |
| #ifndef _MINIX_CHIP
 | |
| error "In <minix/sys_config.h> please define _MINIX_MACHINE to have a legal value"
 | |
| #endif
 | |
| 
 | |
| #if (_MINIX_MACHINE == 0)
 | |
| error "_MINIX_MACHINE has incorrect value (0)"
 | |
| #endif
 | |
| 
 | |
| /* Kernel debug checks */
 | |
| #define DEBUG_LOCK_CHECK 1	/* Interrupt Lock/unlock sanity checking. */
 | |
| 
 | |
| #endif /* _MINIX_SYS_CONFIG_H */
 |