📄 configall.h
字号:
#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 BOOT_CMD_STACK_SIZE (11000) /* size of boot cmd stack, in bytes */#define ROOT_STACK_SIZE (24000) /* 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==SH#define INT_LOCK_LEVEL 15#define ROOT_STACK_SIZE 10000#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#define VEC_BASE_ADRS ((char *) LOCAL_MEM_LOCAL_ADRS)#endif /* CPU_FAMILY==SH */#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)#endif /* CPU_FAMILY==ARM */#ifndef BOOT_CMD_STACK_SIZE#define BOOT_CMD_STACK_SIZE 7000#endif /* BOOT_CMD_STACK_SIZE */#ifdef INCLUDE_WDB#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 */#define WDB_COMM_VTMD 8 /* TMD packet device - bimodal *//* communication path configuration */#ifndef WDB_COMM_TYPE#define WDB_COMM_TYPE WDB_COMM_END /* 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 */#define IO_ADRS_EI ((char *) 0x000fff00) /* 32A,32D i82596CA Ethernet */#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 5000 /* 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 0x1000#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#elif (CPU==SH7750 || CPU==SH7729 || CPU==SH7700)#define SM_ANCHOR_OFFSET 0x1600 /* not used for SDRAM config. */#define BOOT_LINE_OFFSET 0x1700#define EXC_MSG_OFFSET 0x1800#else#define SM_ANCHOR_OFFSET 0x600#define BOOT_LINE_OFFSET 0x700#define EXC_MSG_OFFSET 0x800#endif /* (CPU_FAMILY == I80X86) */#define SM_ANCHOR_ADRS ((char *) (LOCAL_MEM_LOCAL_ADRS+SM_ANCHOR_OFFSET))#define BOOT_LINE_ADRS ((char *) (LOCAL_MEM_LOCAL_ADRS+BOOT_LINE_OFFSET))#define BOOT_LINE_SIZE 255 /* use 255 bytes for bootline */#define NV_BOOT_OFFSET 0 /* store the boot line at start of NVRAM */#define EXC_MSG_ADRS ((char *) (LOCAL_MEM_LOCAL_ADRS+EXC_MSG_OFFSET))#define SM_TAS_TYPE SM_TAS_HARD /* hardware supports test-and-set *//* Resident ROMs constants */#if ((CPU_FAMILY==I960) || (CPU_FAMILY==ARM))#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#define STACK_ADRS _romInit#endif /* ROM_RESIDENT */#else /* _STACK_DIR == _STACK_GROWS_UP */#ifdef ROM_RESIDENT#define STACK_ADRS (STACK_RESIDENT-STACK_SAVE)#else#define STACK_ADRS (_romInit-STACK_SAVE)#endif /* ROM_RESIDENT */#endif /* _STACK_DIR == _STACK_GROWS_UP *//* Default Boot Parameters */#define HOST_NAME_DEFAULT "bootHost" /* host name */#define TARGET_NAME_DEFAULT "vxTarget" /* target name (tn) */#define HOST_USER_DEFAULT "target" /* user (u) */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -