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

📄 offset.h

📁 uT Kernel os source code for AT91
💻 H
字号:
/* *---------------------------------------------------------------------- *    micro T-Kernel * *    Copyright (C) 2006-2007 by Ken Sakamura. All rights reserved. *    micro T-Kernel is distributed under the micro T-License. *---------------------------------------------------------------------- * *    Version:   1.00.00 *    Released by T-Engine Forum(http://www.t-engine.org) at 2007/03/26. * *---------------------------------------------------------------------- *//* *	offset.h (AT91) *	TCB Offset Definition */#ifndef _OFFSET_#define _OFFSET_/* Adjust offset of TCB member variables in offset.h for cpu_support.S */#include "config.h"/*	TCB.wrdvno	*/#if CFN_MAX_PORID > 0#define TCBSZ_POR	(4)	/* = sizeof(RNO) */#else#define TCBSZ_POR	(0)#endif/*	TCB.mtxlist	*/#if CFN_MAX_MTXID > 0#define TCBSZ_MTX	(4)	/* = sizeof(MTXCB*) */#else#define TCBSZ_MTX	(0)#endif/*	TCB.winfo.xxx	*/#if CFN_MAX_PORID > 0#define TCBSZ_WINFO	(16)#else#if CFN_MAX_FLGID > 0#define TCBSZ_WINFO	(12)#else#if CFN_MAX_MBFID > 0 || CFN_MAX_MPLID > 0#define TCBSZ_WINFO	(8)#else#if CFN_MAX_SEMID > 0 || CFN_MAX_MBXID > 0 || CFN_MAX_MPFID > 0#define TCBSZ_WINFO	(4)#else#define TCBSZ_WINFO	(0)#endif#endif#endif#endif/*	TCB.stime, TCB.utime */#if USE_DBGSPT && defined(USE_FUNC_TD_INF_TSK)#define TCBSZ_EXECTIME	(8)#else#define TCBSZ_EXECTIME	(0)#endif#define _ALIGN_CPU(x)	(((x)+3)&0xFFFFFFFC)	/* ARM7TDMI : 32 bit CPU	*//*----------------------------------------------------------------------*//*	machine dependent data						*//*----------------------------------------------------------------------*/#define	TCB_winfo	(60)		/* tskque - wercd		*/#define	TCB_wtmeb	_ALIGN_CPU(TCB_winfo+TCBSZ_WINFO)#define	TCBsz_wtmeb2isstack	(24+TCBSZ_MTX+TCBSZ_POR+TCBSZ_EXECTIME)					/* wtmeb - istack		*/#define TCBSZ_GP	(0)		/* No global pointer support	*//*----------------------------------------------------------------------*//*	offset data in TCB						*//*----------------------------------------------------------------------*/#define TCB_isstack	(TCB_wtmeb+TCBsz_wtmeb2isstack)#define TCB_tskctxb	_ALIGN_CPU(TCB_isstack+4+TCBSZ_GP)#define TCB_tskid	8#define TCB_tskatr	16#define TCB_state	35#define CTXB_ssp	0#endif /* _OFFSET_ */

⌨️ 快捷键说明

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