📄 sysinfo_depend.h
字号:
/* *---------------------------------------------------------------------- * T-Kernel * * Copyright (C) 2004 by Ken Sakamura. All rights reserved. * T-Kernel is distributed under the T-License. *---------------------------------------------------------------------- * * Version: 1.01.00 * Released by T-Engine Forum(http://www.t-engine.org) at 2004/6/28. * *---------------------------------------------------------------------- *//* * @(#)sysinfo_depend.h (sys/SH7760) * * System common information * * 0x8c000000 +-----------------------+ * |Vector table of | (EXPEVT / 0x20 * 4) + 0x8c000000 * |exception codes and | (INTEVT / 0x20 * 4) + 0x8c000000 * |interrupt factors | * 0x8c000200 +-----------------------+ * |Default handler | * 0x8c000204 +-----------------------+ * |TLB miss exception | VBR+0x400 exception handler * |handler | * 0x8c000208 +-----------------------+ * |TRAPA vector table | TRA + 0x8c000000 * |(TRAPA 0x70 - 0x7f) | * 0x8c000280 +-----------------------+ * |System common info. | * 0x8c000300 +-----------------------+ * |EIT stack | * 0x8c000600 +-----------------------+ */#ifndef __SYS_SYSINFO_DEPEND_H__#define __SYS_SYSINFO_DEPEND_H__#ifdef __cplusplusextern "C" {#endif#ifndef _in_asm_source_/* * Boot mode/Operation mode */typedef union { struct { UW debug:1; /* When in debug mode 1 */ UW fsrcv:1; /* When in disk repair mode 1 */ UW rsv:12; /* Reserved (always 0) */ UW basic:1; /* When in basic operation mode 1 */ UW rsv2:17; /* Reserved (always 0) */ } c; UW w;} BootMode;#define BM_DEBUG 0x00000001 /* Debug mode */#define BM_FSRCV 0x00000002 /* Disk repair mode */#define BM_BASIC 0x00004000 /* Basic operation mode *//* * System common information */typedef struct { VP ramtop; /* RAM free space top */ VP ramend; /* RAM free space end */ UB *sysconf; /* SYSCONF top */ UB *devconf; /* DEVCONF top */ FP chkmem; /* Monitor memory check function */ UH Ick; /* SH7760 CPU clock (MHz) */ UH Pck; /* SH7760 peripheral clock (1/100 MHz) */ UH Bck; /* Bus clock (1/100 MHz) */ UH dck; /* DCK clock (1/100 MHz) */ UW loop64us; /* Loop count per 64 micro sec */ BootMode bm; /* Boot mode */ UB bootdev[8]; /* Boot device name */ VW rsv[21]; /* Reserved (always 0) */} SysCommonInfo;/* * System common area */#define N_INTVEC 128#define N_TRAVEC 30#define N_INTSTACK 192typedef struct { FP intvec[N_INTVEC]; /* EIT vector */ FP defaulthdr; /* Default handler */ FP tlbmisshdr; /* TLB miss exception handler */ FP travec[N_TRAVEC]; /* TRAPA vector */ SysCommonInfo scinfo; /* System common information */ UW intstack[N_INTSTACK]; /* Interrupt stack area */} SysCommonArea;#define SCArea ( (SysCommonArea*)0x8c000000 )#define SCInfo ( SCArea->scinfo )#endif /* _in_asm_source_ *//* * Vector table addresses */#define VECTBL 0x8c000000 /* Vector table top */#define DEFAULTHDR 0x8c000200 /* Default handler */#define TLBMISSHDR 0x8c000204 /* TLB miss exception handler */#ifdef __cplusplus}#endif#endif /* __SYS_SYSINFO_DEPEND_H__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -