⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 configall.h

📁 MPC850的bootrom。使用后可以直接启动boot程序
💻 H
📖 第 1 页 / 共 3 页
字号:
/******************************************************************************//*                                                                            *//*                  KERNEL SOFTWARE CONFIGURATION                             *//*                                                                            *//******************************************************************************/#define USER_I_CACHE_MODE	CACHE_WRITETHROUGH  /* default mode */#define USER_D_CACHE_MODE	CACHE_WRITETHROUGH  /* default mode */#define USER_I_CACHE_ENABLE		    	    /* undef to leave disabled*/#define USER_D_CACHE_ENABLE			    /* undef to leave disabled*/#define USER_B_CACHE_ENABLE			    /* undef to leave disabled*/#define USER_I_MMU_ENABLE			    /* undef to leave disabled*/#define USER_D_MMU_ENABLE			    /* undef to leave disabled*/#define SYM_TBL_HASH_SIZE_LOG2	8	/* 256 entry hash table symbol table */#define STAT_TBL_HASH_SIZE_LOG2	6	/* 64 entry hash table for status */#define MQ_HASH_SIZE		0	/* POSIX message queue hash table size 					 * 0 = default */#define NUM_SIGNAL_QUEUES	16	/* POSIX queued signal count */#if CPU==SIMNT#define FREE_RAM_ADRS		simMemBlock#else#define FREE_RAM_ADRS		(end)	/* start right after bss of VxWorks */#endif/* I/O system parameters */#define NUM_DRIVERS		20	/* max 20 drivers in drvTable */#define NUM_FILES		50	/* max 50 files open simultaneously */#define NUM_DOSFS_FILES		20	/* max 20 dosFs files open */#define NUM_RAWFS_FILES		5	/* max 5  rawFs files open */#define NUM_RT11FS_FILES	5	/* max 5  rt11Fs files open */#define MAX_LOG_MSGS		50      /* max 50 log msgs */#define	NUM_TTY			2	/* number of tty channels */#define	CONSOLE_TTY		0	/* console channel */#define CONSOLE_BAUD_RATE	9600	/* console baud rate */#ifdef	INCLUDE_SLIP#define	SLIP_TTY		1	/* serial line IP channel */#endif	/* INCLUDE_SLIP */#define MAX_LIO_CALLS		0	/* max outstanding lio calls 0=default */#define MAX_AIO_SYS_TASKS	0	/* max aio system tasks, 0 = default */#define AIO_TASK_PRIORITY	0	/* aio system tasks prior, 0 = default */#define AIO_TASK_STACK_SIZE	0	/* aio tasks stack size, 0 = default *//* kernel and system task parameters by architecture */#if	CPU_FAMILY==MC680X0#define INT_LOCK_LEVEL  	0x7	/* 68k interrupt disable mask */#define ROOT_STACK_SIZE		10000	/* size of root's stack, in bytes */#define SHELL_STACK_SIZE	10000	/* size of shell's stack, in bytes */#define WDB_STACK_SIZE	 	0x1000	/* size of WDB agents stack, in bytes */#define ISR_STACK_SIZE		1000	/* size of ISR stack, in bytes */#define TRAP_DEBUG		2	/* trap 2 - breakpoint trap */#define VEC_BASE_ADRS           ((char *) LOCAL_MEM_LOCAL_ADRS)#endif	/* CPU_FAMILY==MC680X0 */#if	CPU_FAMILY==SPARC#define INT_LOCK_LEVEL  	15	/* SPARC interrupt disable level */#define ROOT_STACK_SIZE		10000	/* size of root's stack, in bytes */#define SHELL_STACK_SIZE	50000	/* size of shell's stack, in bytes */#define WDB_STACK_SIZE	 	0x2000	/* size of WDB agents stack, in bytes */#define ISR_STACK_SIZE		10000	/* size of ISR stack, in bytes */#define VEC_BASE                (LOCAL_MEM_LOCAL_ADRS + 0x1000)#define VEC_BASE_ADRS           ((char *) VEC_BASE)#endif	/* CPU_FAMILY==SPARC */#if CPU_FAMILY==SIMNT || CPU_FAMILY==SIMSPARCSUNOS  || CPU_FAMILY==SIMHPPA || CPU_FAMILY==SIMSPARCSOLARIS#define INT_LOCK_LEVEL          0x1     /* interrupt disable mask */#define ROOT_STACK_SIZE         20000   /* size of root's stack, in bytes */#define SHELL_STACK_SIZE        50000   /* size of shell's stack, in bytes */#define WDB_STACK_SIZE	 	0x2000	/* size of WDB agents stack, in bytes */#define ISR_STACK_SIZE          50000   /* size of ISR stack, in bytes */#define VEC_BASE_ADRS           0       /* dummy */#endif  /* CPU_FAMILY ==SIMNT || CPU_FAMILY==SIMSPARCSUNOS  || CPU_FAMILY==SIMHPPA || CPU_FAMILY==SIMSPARCSOLARIS */#if	CPU_FAMILY==I960#define INT_LOCK_LEVEL  	0x1f	/* i960 interrupt disable mask */#define ROOT_STACK_SIZE		20000	/* size of root's stack, in bytes */#define SHELL_STACK_SIZE	40000	/* size of shell's stack, in bytes */#define WDB_STACK_SIZE	 	0x2000	/* size of WDB agents stack, in bytes */#define ISR_STACK_SIZE		1000	/* size of ISR stack, in bytes */#define TRAP_DEBUG		0	/* n/a for the 80960 */#define VEC_BASE_ADRS           NONE	/* base register not reconfigurable */#endif	/* CPU_FAMILY==I960 */#if	CPU_FAMILY==MIPS#define INT_LOCK_LEVEL          0x1     /* R3K interrupt disable mask */#define ROOT_STACK_SIZE         (20000) /* size of root's stack, in bytes */#define SHELL_STACK_SIZE        (20000) /* size of shell's stack, in bytes */#define WDB_STACK_SIZE	 	(0x2000)/* size of WDB agents stack, in bytes */#define ISR_STACK_SIZE          (5000)  /* size of ISR stack, in bytes */#define VEC_BASE_ADRS           ((char *) 0x0)  /* meaningless in R3k land */#define VME_VECTORED            FALSE   /* use vectored VME interrupts */#define TRAP_DEBUG              0       /* trap 0 - breakpoint trap */#endif	/* CPU_FAMILY==MIPS */#if	CPU_FAMILY==PPC#define INT_LOCK_LEVEL          0x0     /* not used */#define ROOT_STACK_SIZE         (20000) /* size of root's stack, in bytes */#define SHELL_STACK_SIZE        (20000) /* size of shell's stack, in bytes */#define WDB_STACK_SIZE	 	0x2000	/* size of WDB agents stack, in bytes */#define ISR_STACK_SIZE          (5000)  /* size of ISR stack, in bytes */#define VEC_BASE_ADRS           ((char *) 0x0)#endif	/* CPU_FAMILY==PPC */#if     CPU_FAMILY==I80X86#define INT_LOCK_LEVEL          0x0     /* 80x86 interrupt disable mask */#define ROOT_STACK_SIZE         10000   /* size of root's stack, in bytes */#define SHELL_STACK_SIZE        10000   /* size of shell's stack, in bytes */#define WDB_STACK_SIZE	 	0x1000	/* size of WDB agents stack, in bytes */#define ISR_STACK_SIZE          1000    /* size of ISR stack, in bytes */#define TRAP_DEBUG              0       /* not used */#define VEC_BASE_ADRS           ((char *) LOCAL_MEM_LOCAL_ADRS)#endif  /* CPU_FAMILY==I80X86 */#if	CPU_FAMILY==AM29XXX#define INT_LOCK_LEVEL  	0x0001	/* 29k all interrupts disable mask */#define ROOT_STACK_SIZE		10000	/* size of root's stack, in bytes */#define SHELL_STACK_SIZE	40000	/* size of shell's stack, in bytes */#define WDB_STACK_SIZE	 	0x2000	/* size of WDB agents stack, in bytes */#define ISR_STACK_SIZE		10000	/* size of ISR stack, in bytes */#define TRAP_DEBUG		15	/* trap 2 - breakpoint trap */#define VEC_BASE_ADRS           ((char *) LOCAL_MEM_LOCAL_ADRS)#endif	/* CPU_FAMILY==AM29XXX */#if     CPU_FAMILY==ARM#define INT_LOCK_LEVEL          0       /* interrupt disable mask - unused */#define ROOT_STACK_SIZE         0x4000  /* size of root's stack, in bytes */#define SHELL_STACK_SIZE        0x10000 /* size of shell's stack, in bytes */#define WDB_STACK_SIZE          0x2000  /* size of WDB agents stack, in bytes */#define TRAP_DEBUG              0       /* not used */#define VEC_BASE_ADRS           ((char *) LOCAL_MEM_LOCAL_ADRS)/* * NOTE: ISR_STACK_SIZE defined in config.h, not here - BSP interrupt * 	 structure dependent */#endif  /* CPU_FAMILY==ARM *//* WDB debug agent configuration */#ifdef  INCLUDE_WDB/* optional agent facilities */#define INCLUDE_WDB_BANNER		/* print banner after agent starts */#define INCLUDE_WDB_VIO			/* virtual I/O support */#define	INCLUDE_WDB_TTY_TEST		/* test serial line communcation */#define INCLUDE_WDB_START_NOTIFY	/* notify the host of task creation */#define INCLUDE_WDB_USER_EVENT		/* user events handling *//* core agent facilities - do not remove */#define INCLUDE_WDB_CTXT		/* context control */#define INCLUDE_WDB_FUNC_CALL		/* spawn function as separate task */#define INCLUDE_WDB_DIRECT_CALL		/* call function in agents context */#define INCLUDE_WDB_EVENTS		/* host async event notification */#define INCLUDE_WDB_GOPHER		/* gopher info gathering */#define INCLUDE_WDB_BP			/* breakpoint support */#define INCLUDE_WDB_EXC_NOTIFY		/* notify host of exceptions */#define INCLUDE_WDB_EXIT_NOTIFY		/* notify the host of task exit */#define INCLUDE_WDB_REG			/* get/set hardware registers */#define INCLUDE_WDB_EVENTPOINTS		/* eventpoints handling */#define INCLUDE_WDB_MEM			/* optional memory services *//* agent mode */#define WDB_MODE        WDB_MODE_DUAL	/* WDB_MODE_[DUAL|TASK|EXTERN] *//* agent communication paths */#define WDB_COMM_NETWORK 	0	/* vxWorks network	- task mode */#define WDB_COMM_SERIAL		1	/* raw serial		- bimodal   */#define WDB_COMM_TYCODRV_5_2	2	/* older serial driver	- task mode */#define WDB_COMM_ULIP		3	/* vxSim packet device	- bimodal   */#define WDB_COMM_NETROM		4	/* netrom packet device	- bimodal   */#define WDB_COMM_CUSTOM		5	/* custom packet device	- bimodal   */#define WDB_COMM_END		6	/* END packet device 	- bimodal */#define WDB_COMM_PIPE           7       /* vxSim pipe device    - bimodal   *//* communication path configuration */#ifndef WDB_COMM_TYPE#define WDB_COMM_TYPE WDB_COMM_NETWORK	/* default path is the network */#endif#ifndef WDB_TTY_CHANNEL#define WDB_TTY_CHANNEL		1	/* default Sio SERIAL channel */#endif#ifndef WDB_TTY_DEV_NAME#define WDB_TTY_DEV_NAME    "/tyCo/1"	/* default TYCODRV_5_2 device name */#endif#ifndef WDB_TTY_BAUD#define WDB_TTY_BAUD		9600	/* default baud rate */#endif#ifndef WDB_ULIP_DEV#define WDB_ULIP_DEV    "/dev/ulip14"	/* default ULIP packet device */#endif#define	WDB_NETROM_TYPE		400	/* default is old 400 series */#define	WDB_NETROM_WIDTH	1	/* width of a ROM word. This macro					 * is not used for the 500 series. */#define WDB_NETROM_INDEX	0	/* index into word of pod zero */#define	WDB_NETROM_NUM_ACCESS	1	/* of pod zero per byte read */#define	WDB_NETROM_ROMSIZE	ROM_SIZE /* size of a single ROM. If your					 * board has N ROMs, this definition					 * must be divided by N to be right */#define WDB_NETROM_POLL_DELAY	2	/* # clock ticks to poll for input *//* miscelaneous agent constants */#define WDB_MTU         	1500	/* max RPC message size */#define WDB_POOL_SIZE 		((sysMemTop() - FREE_RAM_ADRS)/16) /* memory pool for host tools */#define WDB_SPAWN_STACK_SIZE	0x5000	/* default stack size of spawned task */#endif  /* INCLUDE_WDB *//******************************************************************************//*                                                                            *//*                   "GENERIC" BOARD CONFIGURATION                            *//*                                                                            *//******************************************************************************//* device controller I/O addresses when included */#define IO_ADRS_EI      ((char *) 0x000fff00)   /* 32A,32D i82596CA Ethernet *//******************************************************************************//*                                                                            *//*                   "MISCELLANEOUS" CONSTANTS                                *//*                                                                            *//******************************************************************************//* shared memory objects parameters (unbundled) */#define SM_OBJ_MAX_TASK		40	/* max # of tasks using smObj */#define SM_OBJ_MAX_SEM		60	/* max # of shared semaphores */#define SM_OBJ_MAX_MSG_Q	10	/* max # of shared message queues */#define SM_OBJ_MAX_MEM_PART	4	/* max # of shared memory partitions */#define SM_OBJ_MAX_NAME		100	/* max # of shared objects names */#define SM_OBJ_MAX_TRIES	100	/* max # of tries to obtain lock *//* shared memory network parameters  - defaults to values DEFAULT_PKTS_SIZE * and DEFAULT_CPUS_MAX in smPktLib.h respectively */#define SM_PKTS_SIZE            0       /* shared memory packet size */#define SM_CPUS_MAX             0       /* max # of cpus for shared network *//* low memory layout */#if     (CPU_FAMILY == I80X86)#define GDT_BASE_OFFSET         0x800#define SM_ANCHOR_OFFSET        0x1100#define BOOT_LINE_OFFSET        0x1200#define EXC_MSG_OFFSET          0x1300#elif   (CPU_FAMILY == PPC)#define SM_ANCHOR_OFFSET        0x4100#define BOOT_LINE_OFFSET        0x4200#define EXC_MSG_OFFSET          0x4300#else#define SM_ANCHOR_OFFSET        0x600#define BOOT_LINE_OFFSET        0x700#define EXC_MSG_OFFSET          0x800#endif  /* (CPU_FAMILY == I80X86) *//* The backplane driver onboard anchor at the following address */#define SM_ANCHOR_ADRS	((char *) (LOCAL_MEM_LOCAL_ADRS+SM_ANCHOR_OFFSET))/* The bootroms put the boot line at the following address */#define BOOT_LINE_ADRS	((char *) (LOCAL_MEM_LOCAL_ADRS+BOOT_LINE_OFFSET))#define	BOOT_LINE_SIZE	255	/* use 255 bytes for bootline *//* The boot line is stored in non-volatile RAM at the following offset */#define	NV_BOOT_OFFSET	0	/* store the boot line at start of NVRAM *//* Messages from exceptions during exceptions go at the following address */#define EXC_MSG_ADRS	((char *) (LOCAL_MEM_LOCAL_ADRS+EXC_MSG_OFFSET))/* Backplane H/W support */#define	SM_TAS_TYPE	SM_TAS_HARD	/* hardware supports test-and-set *//* Resident ROMs constants */#if     (CPU_FAMILY==I960)#define STACK_SAVE      512     	/* maximum stack used to preserve */#else	/* sparc or others */#if	((CPU_FAMILY==SPARC) || (CPU_FAMILY==PPC))#define	STACK_SAVE	0x1000#else	/* all other architecutes */#define STACK_SAVE      0x40    	/* maximum stack used to preserve */#endif					/* mips cpp no elif */#endif#if     (CPU_FAMILY==SPARC)#define RESERVED        0x2000		/* vector table base plus table size */#else	/* 68000 or others */#if	(CPU==MC68000)#define RESERVED	0x400		/* avoid zeroing MC68302 vector table */#else	#if	(CPU_FAMILY == PPC)#define RESERVED	0x4400		/* avoid zeroing EXC_MSG */#else	/* all other architectures */#define RESERVED        0#endif#endif					/* mips cpp no elif */#endif#if     ((CPU_FAMILY == MIPS) || (CPU_FAMILY == PPC))#define	STACK_RESIDENT	RAM_DST_ADRS#else#define	STACK_RESIDENT	_sdata#endif#if	(_STACK_DIR == _STACK_GROWS_DOWN)#ifdef	ROM_RESIDENT#define STACK_ADRS	STACK_RESIDENT#else

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -