📄 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/SH7727) * * System common information * * 0x8c000000 +-----------------------+ * |Vector table of | (EXPEVT / 0x20 * 4) + 0x8c000000 * |exception codes and | (INTEVT2 / 0x20 * 4) + 0x8c000000 * |interrupt factors | * 0x8c0001c0 +-----------------------+ * |TRAPA vector table | TRA + 0x8c000000 * | TRAPA 0x70 - 0x7f | * 0x8c000200 +-----------------------+ * |Default handler | * 0x8c000204 +-----------------------+ * |TLB miss exception | VBR + 0x400 exception handler * |handler | * 0x8c000208 +-----------------------+ * |System common info. | * 0x8c000280 +-----------------------+ * |EIT stack | (640 byte) * 0x8c000500 +-----------------------+ */#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 { VW rsv[20]; /* Reserved (always 0) */ UB bootdev[8]; /* Boot device name */ BootMode bm; /* Boot mode */ UW loop64us; /* Loop count per 64 micro sec */ UB *sysconf; /* SYSCONF top */ UB *devconf; /* DEVCONF top */ FP chkmem; /* Monitor memory check function */ UH Iclk; /* SH7727 internal clock (MHz) */ UH Pclk; /* SH7727 peripheral clock (MHz) */ VP ramtop; /* RAM free space top */ VP ramend; /* RAM free space end */} SysCommonInfo;/* * System common area */#define N_INTVEC 128#define N_INTSTACK 160typedef struct { FP intvec[N_INTVEC]; /* EIT vector */ FP defaulthdr; /* Default handler */ FP tlbmisshdr; /* TLB miss exception handler */ 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 + -