source: anotherchoice/tags/jsp-1.4.4-full-UTF8/config/windows/tool_config.h@ 26

Last change on this file since 26 was 26, checked in by ykominami, 10 years ago

initial

File size: 19.3 KB
Line 
1/*
2 * TOPPERS/JSP Kernel
3 * Toyohashi Open Platform for Embedded Real-Time Systems/
4 * Just Standard Profile Kernel
5 *
6 * Copyright (C) 2003 by Embedded and Real-Time Systems Laboratory
7 * Toyohashi Univ. of Technology, JAPAN
8 *
9 * 上記著作権者
10は,以下の (1)〜(4) の条件か,Free Software Foundation
11 * によってå…
12¬è¡¨ã•ã‚Œã¦ã„ã‚‹ GNU General Public License の Version 2 に記
13 * 述されている条件を満たす場合に限り,本ソフトウェア(本ソフトウェア
14 * を改変したものを含む.以下同じ)を使用・複製・改変・再é…
15å¸ƒï¼ˆä»¥ä¸‹ï¼Œ
16 * 利用と呼ぶ)することを無償で許諾する.
17 * (1) 本ソフトウェアをソースコードの形で利用する場合には,上記の著作
18 * 権表示,この利用条件および下記の無保証規定が,そのままの形でソー
19 * スコード中に含まれていること.
20 * (2) 本ソフトウェアを,ライブラリ形式など,他のソフトウェア開発に使
21 * 用できる形で再é…
22å¸ƒã™ã‚‹å ´åˆã«ã¯ï¼Œå†é…
23å¸ƒã«ä¼´ã†ãƒ‰ã‚­ãƒ¥ãƒ¡ãƒ³ãƒˆï¼ˆåˆ©ç”¨
24 * 者
25マニュアルなど)に,上記の著作権表示,この利用条件および下記
26 * の無保証規定を掲載すること.
27 * (3) 本ソフトウェアを,機器に組み込むなど,他のソフトウェア開発に使
28 * 用できない形で再é…
29å¸ƒã™ã‚‹å ´åˆã«ã¯ï¼Œæ¬¡ã®ã„ずれかの条件を満たすこ
30 * と.
31 * (a) 再é…
32å¸ƒã«ä¼´ã†ãƒ‰ã‚­ãƒ¥ãƒ¡ãƒ³ãƒˆï¼ˆåˆ©ç”¨è€…
33マニュアルなど)に,上記の著
34 * 作権表示,この利用条件および下記の無保証規定を掲載すること.
35 * (b) 再é…
36å¸ƒã®å½¢æ…
37‹ã‚’,別に定める方法によって,TOPPERSプロジェクトに
38 * 報告すること.
39 * (4) 本ソフトウェアの利用により直接的または間接的に生じるいかなる損
40 * 害からも,上記著作権者
41およびTOPPERSプロジェクトをå…
42è²¬ã™ã‚‹ã“と.
43 *
44 * 本ソフトウェアは,無保証で提供されているものである.上記著作権者
45お
46 * よびTOPPERSプロジェクトは,本ソフトウェアに関して,その適用可能性も
47 * 含めて,いかなる保証も行わない.また,本ソフトウェアの利用により直
48 * 接的または間接的に生じたいかなる損害に関しても,その責任を負わない.
49 *
50 * @(#) $Id: tool_config.h,v 1.11 2005/07/27 11:18:14 honda Exp $
51 */
52
53/*
54 * 開発環境依存モジュール
55 */
56
57#ifndef _TOOL_CONFIG_H_
58#define _TOOL_CONFIG_H_
59
60#include <s_services.h>
61#include <kernel_debug.h>
62
63/*
64 * 開発環境依存の初期化は使用しない
65 */
66#define tool_initialize()
67
68/*
69 * __EMPTY_LABELマクロの定義
70 */
71#if defined(_MSC_VER) || defined(__BORLANDC__)
72 #define __EMPTY_LABEL(x,y) _declspec(naked) void y(void){}
73#endif
74
75#ifndef _MACRO_ONLY
76#ifdef EVENTLOG_ENABLE
77#ifdef __cplusplus
78 extern "C" void event_write(unsigned int logtype, unsigned int valid, UINT bufsz, ... );
79 extern "C" void event_write_svc_enter(int fncd, unsigned int params, ... );
80 extern "C" void event_write_svc_leave(int fncd, unsigned int ercd);
81 extern "C" void event_write_tskstat(void * tcb);
82 extern "C" void event_write_comment(const char *, ... );
83#else
84 extern void event_write(unsigned int logtype, unsigned int valid, UINT bufsz, ... );
85 extern void event_write_svc_enter(int fncd, unsigned int params, ... );
86 extern void event_write_svc_leave(int fncd, unsigned int ercd, unsigned int retaddr);
87 extern void event_write_tskstat(void * tcb);
88 extern void event_write_comment(const char *, ... );
89#endif
90
91 /*
92 * 戻り番地取得マクロ
93 */
94#if defined(_MSC_VER)
95#define GET_RETURNADDRESS(x) __asm { mov eax, dword ptr [ebp + 4] } __asm { mov dword ptr [x], eax }
96#elif defined(__GNUC__)
97#define GET_RETURNADDRESS(x) { x = 0; }
98#elif
99#define GET_RETURNADDRESS(x) { x = 0: }
100#endif
101
102#define LOG_SVC_ENTER(x) { DWORD address; GET_RETURNADDRESS(address); event_write_svc_enter x; }
103#define LOG_SVC_LEAVE(x) { DWORD address; GET_RETURNADDRESS(address); event_write_svc_leave x; }
104#define LOG_EVENT(x) { event_write x; }
105#define LOG_EVENT_TSKSTAT(x) { event_write_tskstat x; }
106
107#endif /* EVENTLOGG_ENABLED */
108#endif /* _MACRO_ONLY */
109
110
111 /* ログを使用できない場合 */
112#ifndef LOG_EVENT
113#define LOG_SVC_ENTER(x)
114#define LOG_SVC_LEAVE(x)
115#define LOG_EVENT(x)
116#define LOG_EVENT_TSKSTAT(x)
117#endif
118
119
120/*
121 * トレースログの設定
122 */
123
124#define LOG_INH_ENTER(inhno) LOG_EVENT((LOG_TYPE_INH|LOG_ENTER, 0x1, sizeof(int), (int)(inhno)));
125#define LOG_INH_LEAVE(inhno) LOG_EVENT((LOG_TYPE_INH|LOG_LEAVE, 0x1, sizeof(int), (int)(inhno)));
126
127#define LOG_ISR_ENTER(intno)
128#define LOG_ISR_LEAVE(intno)
129
130#define LOG_CYC_ENTER(cyccb) LOG_EVENT((LOG_TYPE_CYC|LOG_ENTER, 0x7, sizeof(int)*3, OBJ_CYCLICHANDLER,(int)((cyccb) - cyccb_table)+1,(unsigned int)(cyccb)->cycinib->exinf));
131#define LOG_CYC_LEAVE(cyccb) LOG_EVENT((LOG_TYPE_CYC|LOG_LEAVE, 0x7, sizeof(int)*3, OBJ_CYCLICHANDLER,(int)((cyccb) - cyccb_table)+1,(unsigned int)(cyccb)->cycinib->exinf));
132
133#define LOG_EXC_ENTER(excno) LOG_EVENT((LOG_TYPE_EXC|LOG_ENTER, 0x1, sizeof(int), (int)(excno)));
134#define LOG_EXC_LEAVE(excno) LOG_EVENT((LOG_TYPE_EXC|LOG_LEAVE, 0x1, sizeof(int), (int)(excno)));
135
136#define LOG_TEX_ENTER(texptn) LOG_EVENT((LOG_TYPE_TEX|LOG_ENTER, 0x3, sizeof(int)*2, (int)TSKID(runtsk), (int)(texptn)));
137#define LOG_TEX_LEAVE(texptn) LOG_EVENT((LOG_TYPE_TEX|LOG_LEAVE, 0x3, sizeof(int)*2, (int)TSKID(runtsk), (int)(texptn)));
138
139#define LOG_TSKSTAT(tcb) LOG_EVENT_TSKSTAT((tcb));
140
141#define LOG_DSP_ENTER_INT(tcb) LOG_EVENT((LOG_TYPE_DSP|LOG_ENTER, 0x1, sizeof(int)*2, TSKID(tcb),1));
142#define LOG_DSP_ENTER_TSK(tcb) LOG_EVENT((LOG_TYPE_DSP|LOG_ENTER, 0x1, sizeof(int)*2, TSKID(tcb),0));
143#define LOG_DSP_LEAVE(tcb) LOG_EVENT((LOG_TYPE_DSP|LOG_LEAVE, 0x1, sizeof(int), TSKID(tcb)));
144
145#define LOG_ACT_TSK_ENTER(tskid) LOG_SVC_ENTER((TFN_ACT_TSK, 1, tskid, address))
146#define LOG_ACT_TSK_LEAVE(ercd) LOG_SVC_LEAVE((TFN_ACT_TSK, ercd, address))
147#define LOG_IACT_TSK_ENTER(tskid) LOG_SVC_ENTER((TFN_IACT_TSK, 1, tskid, address))
148#define LOG_IACT_TSK_LEAVE(ercd) LOG_SVC_LEAVE((TFN_IACT_TSK, ercd, address))
149#define LOG_CAN_ACT_ENTER(tskid) LOG_SVC_ENTER((TFN_CAN_ACT, 1, tskid, address))
150#define LOG_CAN_ACT_LEAVE(ercd) LOG_SVC_LEAVE((TFN_CAN_ACT, ercd, address))
151#define LOG_EXT_TSK_ENTER() LOG_SVC_ENTER((TFN_EXT_TSK, 0, address))
152#define LOG_TER_TSK_ENTER(tskid) LOG_SVC_ENTER((TFN_TER_TSK, 1, tskid, address))
153#define LOG_TER_TSK_LEAVE(ercd) LOG_SVC_LEAVE((TFN_TER_TSK, ercd, address))
154#define LOG_CHG_PRI_ENTER(tskid, tskpri) LOG_SVC_ENTER((TFN_CHG_PRI, 2, tskid, tskpri, address))
155#define LOG_CHG_PRI_LEAVE(ercd) LOG_SVC_LEAVE((TFN_CHG_PRI, ercd, address))
156#define LOG_GET_PRI_ENTER(tskid, p_tskpri) LOG_SVC_ENTER((TFN_GET_PRI, 2, tskid, p_tskpri, address))
157#define LOG_GET_PRI_LEAVE(ercd, tskpri) LOG_SVC_LEAVE((TFN_GET_PRI, ercd, address))
158#define LOG_SLP_TSK_ENTER() LOG_SVC_ENTER((TFN_SLP_TSK, 0, address))
159#define LOG_SLP_TSK_LEAVE(ercd) LOG_SVC_LEAVE((TFN_SLP_TSK, ercd, address))
160#define LOG_TSLP_TSK_ENTER(tmout) LOG_SVC_ENTER((TFN_TSLP_TSK, 1, tmout, address))
161#define LOG_TSLP_TSK_LEAVE(ercd) LOG_SVC_LEAVE((TFN_TSLP_TSK, ercd, address))
162#define LOG_WUP_TSK_ENTER(tskid) LOG_SVC_ENTER((TFN_WUP_TSK, 1, tskid, address))
163#define LOG_WUP_TSK_LEAVE(ercd) LOG_SVC_LEAVE((TFN_WUP_TSK, ercd, address))
164#define LOG_IWUP_TSK_ENTER(tskid) LOG_SVC_ENTER((TFN_IWUP_TSK, 1, tskid, address))
165#define LOG_IWUP_TSK_LEAVE(ercd) LOG_SVC_LEAVE((TFN_IWUP_TSK, ercd, address))
166#define LOG_CAN_WUP_ENTER(tskid) LOG_SVC_ENTER((TFN_CAN_WUP, 1, tskid, address))
167#define LOG_CAN_WUP_LEAVE(ercd) LOG_SVC_LEAVE((TFN_CAN_WUP, ercd, address))
168#define LOG_REL_WAI_ENTER(tskid) LOG_SVC_ENTER((TFN_REL_WAI, 1, tskid, address))
169#define LOG_REL_WAI_LEAVE(ercd) LOG_SVC_LEAVE((TFN_REL_WAI, ercd, address))
170#define LOG_IREL_WAI_ENTER(tskid) LOG_SVC_ENTER((TFN_IREL_WAI, 1, tskid, address))
171#define LOG_IREL_WAI_LEAVE(ercd) LOG_SVC_LEAVE((TFN_IREL_WAI, ercd, address))
172#define LOG_SUS_TSK_ENTER(tskid) LOG_SVC_ENTER((TFN_SUS_TSK, 1, tskid, address))
173#define LOG_SUS_TSK_LEAVE(ercd) LOG_SVC_LEAVE((TFN_SUS_TSK, ercd, address))
174#define LOG_RSM_TSK_ENTER(tskid) LOG_SVC_ENTER((TFN_RSM_TSK, 1, tskid, address))
175#define LOG_RSM_TSK_LEAVE(ercd) LOG_SVC_LEAVE((TFN_RSM_TSK, ercd, address))
176#define LOG_FRSM_TSK_ENTER(tskid) LOG_SVC_ENTER((TFN_FRSM_TSK, 1, tskid, address))
177#define LOG_FRSM_TSK_LEAVE(ercd) LOG_SVC_LEAVE((TFN_FRSM_TSK, ercd, address))
178#define LOG_DLY_TSK_ENTER(dlytim) LOG_SVC_ENTER((TFN_DLY_TSK, 1, dlytim, address))
179#define LOG_DLY_TSK_LEAVE(ercd) LOG_SVC_LEAVE((TFN_DLY_TSK, ercd, address))
180#define LOG_RAS_TEX_ENTER(tskid, rasptn) LOG_SVC_ENTER((TFN_RAS_TEX, 2, tskid, rasptn, address))
181#define LOG_RAS_TEX_LEAVE(ercd) LOG_SVC_LEAVE((TFN_RAS_TEX, ercd, address))
182#define LOG_IRAS_TEX_ENTER(tskid, rasptn) LOG_SVC_ENTER((TFN_IRAS_TEX, 2, tskid, rasptn, address))
183#define LOG_IRAS_TEX_LEAVE(ercd) LOG_SVC_LEAVE((TFN_IRAS_TEX, ercd, address))
184#define LOG_DIS_TEX_ENTER() LOG_SVC_ENTER((TFN_DIS_TEX, 0, address))
185#define LOG_DIS_TEX_LEAVE(ercd) LOG_SVC_LEAVE((TFN_DIS_TEX, ercd, address))
186#define LOG_ENA_TEX_ENTER() LOG_SVC_ENTER((TFN_ENA_TEX, 0, address))
187#define LOG_ENA_TEX_LEAVE(ercd) LOG_SVC_LEAVE((TFN_ENA_TEX, ercd, address))
188#define LOG_SNS_TEX_ENTER() LOG_SVC_ENTER((TFN_SNS_TEX, 0, address))
189#define LOG_SNS_TEX_LEAVE(state) LOG_SVC_LEAVE((TFN_SNS_TEX, state, address))
190#define LOG_SIG_SEM_ENTER(semid) LOG_SVC_ENTER((TFN_SIG_SEM, 1, semid, address))
191#define LOG_SIG_SEM_LEAVE(ercd) LOG_SVC_LEAVE((TFN_SIG_SEM, ercd, address))
192#define LOG_ISIG_SEM_ENTER(semid) LOG_SVC_ENTER((TFN_ISIG_SEM, 1, semid, address))
193#define LOG_ISIG_SEM_LEAVE(ercd) LOG_SVC_LEAVE((TFN_ISIG_SEM, ercd, address))
194#define LOG_WAI_SEM_ENTER(semid) LOG_SVC_ENTER((TFN_WAI_SEM, 1, semid, address))
195#define LOG_WAI_SEM_LEAVE(ercd) LOG_SVC_LEAVE((TFN_WAI_SEM, ercd, address))
196#define LOG_POL_SEM_ENTER(semid) LOG_SVC_ENTER((TFN_POL_SEM, 1, semid, address))
197#define LOG_POL_SEM_LEAVE(ercd) LOG_SVC_LEAVE((TFN_POL_SEM, ercd, address))
198#define LOG_TWAI_SEM_ENTER(semid, tmout) LOG_SVC_ENTER((TFN_TWAI_SEM, 2, semid, tmout, address))
199#define LOG_TWAI_SEM_LEAVE(ercd) LOG_SVC_LEAVE((TFN_TWAI_SEM, ercd, address))
200#define LOG_SET_FLG_ENTER(flgid, setptn) LOG_SVC_ENTER((TFN_SET_FLG, 2, flgid, setptn, address))
201#define LOG_SET_FLG_LEAVE(ercd) LOG_SVC_LEAVE((TFN_SET_FLG, ercd, address))
202#define LOG_ISET_FLG_ENTER(flgid, setptn) LOG_SVC_ENTER((TFN_ISET_FLG, 2, flgid, setptn, address))
203#define LOG_ISET_FLG_LEAVE(ercd) LOG_SVC_LEAVE((TFN_ISET_FLG, ercd, address))
204#define LOG_CLR_FLG_ENTER(flgid, clrptn) LOG_SVC_ENTER((TFN_CLR_FLG, 2, flgid, clrptn, address))
205#define LOG_CLR_FLG_LEAVE(ercd) LOG_SVC_LEAVE((TFN_CLR_FLG, ercd, address))
206#define LOG_WAI_FLG_ENTER(flgid, waiptn, wfmode, p_flgptn) LOG_SVC_ENTER((TFN_WAI_FLG, 4, flgid, waiptn, wfmode, p_flgptn, address))
207#define LOG_WAI_FLG_LEAVE(ercd, flgptn) LOG_SVC_LEAVE((TFN_WAI_FLG, ercd, address))
208#define LOG_POL_FLG_ENTER(flgid, waiptn, wfmode, p_flgptn) LOG_SVC_ENTER((TFN_POL_FLG, 4, flgid, waiptn, wfmode, p_flgptn, address))
209#define LOG_POL_FLG_LEAVE(ercd, flgptn) LOG_SVC_LEAVE((TFN_POL_FLG, ercd, address))
210#define LOG_TWAI_FLG_ENTER(flgid, waiptn, wfmode, p_flgptn, tmout) LOG_SVC_ENTER((TFN_TWAI_FLG, 5, flgid, waiptn, wfmode, p_flgptn, tmout, address))
211#define LOG_TWAI_FLG_LEAVE(ercd, flgptn) LOG_SVC_LEAVE((TFN_TWAI_FLG, ercd, address))
212#define LOG_SND_DTQ_ENTER(dtqid, data) LOG_SVC_ENTER((TFN_SND_DTQ, 2, dtqid, data, address))
213#define LOG_SND_DTQ_LEAVE(ercd) LOG_SVC_LEAVE((TFN_SND_DTQ, ercd, address))
214#define LOG_PSND_DTQ_ENTER(dtqid, data) LOG_SVC_ENTER((TFN_PSND_DTQ, 2, dtqid, data, address))
215#define LOG_PSND_DTQ_LEAVE(ercd) LOG_SVC_LEAVE((TFN_PSND_DTQ, ercd, address))
216#define LOG_IPSND_DTQ_ENTER(dtqid, data) LOG_SVC_ENTER((TFN_IPSND_DTQ, 2, dtqid, data, address))
217#define LOG_IPSND_DTQ_LEAVE(ercd) LOG_SVC_LEAVE((TFN_IPSND_DTQ, ercd, address))
218#define LOG_TSND_DTQ_ENTER(dtqid, data, tmout) LOG_SVC_ENTER((TFN_TSND_DTQ, 3, dtqid, data, tmout, address))
219#define LOG_TSND_DTQ_LEAVE(ercd) LOG_SVC_LEAVE((TFN_TSND_DTQ, ercd, address))
220#define LOG_FSND_DTQ_ENTER(dtqid, data) LOG_SVC_ENTER((TFN_FSND_DTQ, 2, dtqid, data, address))
221#define LOG_FSND_DTQ_LEAVE(ercd) LOG_SVC_LEAVE((TFN_FSND_DTQ, ercd, address))
222#define LOG_IFSND_DTQ_ENTER(dtqid, data) LOG_SVC_ENTER((TFN_IFSND_DTQ, 2, dtqid, data, address))
223#define LOG_IFSND_DTQ_LEAVE(ercd) LOG_SVC_LEAVE((TFN_IFSND_DTQ, ercd, address))
224#define LOG_RCV_DTQ_ENTER(dtqid, p_data) LOG_SVC_ENTER((TFN_RCV_DTQ, 2, dtqid, p_data, address))
225#define LOG_RCV_DTQ_LEAVE(ercd, data) LOG_SVC_LEAVE((TFN_RCV_DTQ, ercd, address))
226#define LOG_PRCV_DTQ_ENTER(dtqid, p_data) LOG_SVC_ENTER((TFN_PRCV_DTQ, 2, dtqid, p_data, address))
227#define LOG_PRCV_DTQ_LEAVE(ercd, data) LOG_SVC_LEAVE((TFN_PRCV_DTQ, ercd, address))
228#define LOG_TRCV_DTQ_ENTER(dtqid, p_data, tmout) LOG_SVC_ENTER((TFN_TRCV_DTQ, 3, dtqid, p_data, tmout, address))
229#define LOG_TRCV_DTQ_LEAVE(ercd, data) LOG_SVC_LEAVE((TFN_TRCV_DTQ, ercd, address))
230#define LOG_SND_MBX_ENTER(mbxid, pk_msg) LOG_SVC_ENTER((TFN_SND_MBX, 2, mbxid, pk_msg, address))
231#define LOG_SND_MBX_LEAVE(ercd) LOG_SVC_LEAVE((TFN_SND_MBX, ercd, address))
232#define LOG_RCV_MBX_ENTER(mbxid, ppk_msg) LOG_SVC_ENTER((TFN_RCV_MBX, 2, mbxid, ppk_msg, address))
233#define LOG_RCV_MBX_LEAVE(ercd, pk_msg) LOG_SVC_LEAVE((TFN_RCV_MBX, ercd, address))
234#define LOG_PRCV_MBX_ENTER(mbxid, ppk_msg) LOG_SVC_ENTER((TFN_PRCV_MBX, 2, mbxid, ppk_msg, address))
235#define LOG_PRCV_MBX_LEAVE(ercd, pk_msg) LOG_SVC_LEAVE((TFN_PRCV_MBX, ercd, address))
236#define LOG_TRCV_MBX_ENTER(mbxid, ppk_msg, tmout) LOG_SVC_ENTER((TFN_TRCV_MBX, 3, mbxid, ppk_msg, tmout, address))
237#define LOG_TRCV_MBX_LEAVE(ercd, pk_msg) LOG_SVC_LEAVE((TFN_TRCV_MBX, ercd, address))
238#define LOG_GET_MPF_ENTER(mpfid, p_blk) LOG_SVC_ENTER((TFN_GET_MPF, 2, mpfid, p_blk, address))
239#define LOG_GET_MPF_LEAVE(ercd, blk) LOG_SVC_LEAVE((TFN_GET_MPF, ercd, address))
240#define LOG_PGET_MPF_ENTER(mpfid, p_blk) LOG_SVC_ENTER((TFN_PGET_MPF, 2, mpfid, p_blk, address))
241#define LOG_PGET_MPF_LEAVE(ercd, blk) LOG_SVC_LEAVE((TFN_PGET_MPF, ercd, address))
242#define LOG_TGET_MPF_ENTER(mpfid, p_blk, tmout) LOG_SVC_ENTER((TFN_TGET_MPF, 3, mpfid, p_blk, tmout, address))
243#define LOG_TGET_MPF_LEAVE(ercd, blk) LOG_SVC_LEAVE((TFN_TGET_MPF, ercd, address))
244#define LOG_REL_MPF_ENTER(mpfid, blk) LOG_SVC_ENTER((TFN_REL_MPF, 2, mpfid, blk, address))
245#define LOG_REL_MPF_LEAVE(ercd) LOG_SVC_LEAVE((TFN_REL_MPF, ercd, address))
246#define LOG_SET_TIM_ENTER(p_systim) LOG_SVC_ENTER((TFN_SET_TIM, 1, p_systim, address))
247#define LOG_SET_TIM_LEAVE(ercd) LOG_SVC_LEAVE((TFN_SET_TIM, ercd, address))
248#define LOG_GET_TIM_ENTER(p_systim) LOG_SVC_ENTER((TFN_GET_TIM, 1, p_systim, address))
249#define LOG_GET_TIM_LEAVE(ercd, systim) LOG_SVC_LEAVE((TFN_GET_TIM, ercd, address))
250#define LOG_ISIG_TIM_ENTER() LOG_SVC_ENTER((TFN_ISIG_TIM, 0, address))
251#define LOG_ISIG_TIM_LEAVE(ercd) LOG_SVC_LEAVE((TFN_ISIG_TIM, ercd, address))
252#define LOG_STA_CYC_ENTER(cycid) LOG_SVC_ENTER((TFN_STA_CYC, 1, cycid, address))
253#define LOG_STA_CYC_LEAVE(ercd) LOG_SVC_LEAVE((TFN_STA_CYC, ercd, address))
254#define LOG_STP_CYC_ENTER(cycid) LOG_SVC_ENTER((TFN_STP_CYC, 1, cycid, address))
255#define LOG_STP_CYC_LEAVE(ercd) LOG_SVC_LEAVE((TFN_STP_CYC, ercd, address))
256#define LOG_ROT_RDQ_ENTER(tskpri) LOG_SVC_ENTER((TFN_ROT_RDQ, 1, tskpri, address))
257#define LOG_ROT_RDQ_LEAVE(ercd) LOG_SVC_LEAVE((TFN_ROT_RDQ, ercd, address))
258#define LOG_IROT_RDQ_ENTER(tskpri) LOG_SVC_ENTER((TFN_IROT_RDQ, 1, tskpri, address))
259#define LOG_IROT_RDQ_LEAVE(ercd) LOG_SVC_LEAVE((TFN_IROT_RDQ, ercd, address))
260#define LOG_GET_TID_ENTER(p_tskid) LOG_SVC_ENTER((TFN_GET_TID, 1, p_tskid, address))
261#define LOG_GET_TID_LEAVE(ercd, tskid) LOG_SVC_LEAVE((TFN_GET_TID, ercd, address))
262#define LOG_IGET_TID_ENTER(p_tskid) LOG_SVC_ENTER((TFN_IGET_TID, 1, p_tskid, address))
263#define LOG_IGET_TID_LEAVE(ercd, tskid) LOG_SVC_LEAVE((TFN_IGET_TID, ercd, address))
264
265#define LOG_LOC_CPU_ENTER() LOG_SVC_ENTER((TFN_LOC_CPU, 0, address))
266#define LOG_LOC_CPU_LEAVE(ercd) LOG_SVC_LEAVE((TFN_LOC_CPU, ercd, address))
267#define LOG_ILOC_CPU_ENTER() LOG_SVC_ENTER((TFN_ILOC_CPU, 0, address))
268#define LOG_ILOC_CPU_LEAVE(ercd) LOG_SVC_LEAVE((TFN_ILOC_CPU, ercd, address))
269#define LOG_UNL_CPU_ENTER() LOG_SVC_ENTER((TFN_UNL_CPU, 0, address))
270#define LOG_UNL_CPU_LEAVE(ercd) LOG_SVC_LEAVE((TFN_UNL_CPU, ercd, address))
271#define LOG_IUNL_CPU_ENTER() LOG_SVC_ENTER((TFN_IUNL_CPU, 0, address))
272#define LOG_IUNL_CPU_LEAVE(ercd) LOG_SVC_LEAVE((TFN_IUNL_CPU, ercd, address))
273
274#define LOG_DIS_DSP_ENTER() LOG_SVC_ENTER((TFN_DIS_DSP, 0, address))
275#define LOG_DIS_DSP_LEAVE(ercd) LOG_SVC_LEAVE((TFN_DIS_DSP, ercd, address))
276#define LOG_ENA_DSP_ENTER() LOG_SVC_ENTER((TFN_ENA_DSP, 0, address))
277#define LOG_ENA_DSP_LEAVE(ercd) LOG_SVC_LEAVE((TFN_ENA_DSP, ercd, address))
278
279#define LOG_SNS_CTX_ENTER() LOG_SVC_ENTER((TFN_SNS_CTX, 0, address))
280#define LOG_SNS_CTX_LEAVE(state) LOG_SVC_LEAVE((TFN_SNS_CTX, state, address))
281#define LOG_SNS_LOC_ENTER() LOG_SVC_ENTER((TFN_SNS_LOC, 0, address))
282#define LOG_SNS_LOC_LEAVE(state) LOG_SVC_LEAVE((TFN_SNS_LOC, state, address))
283#define LOG_SNS_DSP_ENTER() LOG_SVC_ENTER((TFN_SNS_DSP, 0, address))
284#define LOG_SNS_DSP_LEAVE(state) LOG_SVC_LEAVE((TFN_SNS_DSP, state, address))
285#define LOG_SNS_DPN_ENTER() LOG_SVC_ENTER((TFN_SNS_DPN, 0, address))
286#define LOG_SNS_DPN_LEAVE(state) LOG_SVC_LEAVE((TFN_SNS_DPN, state, address))
287
288#define LOG_VSNS_INI_ENTER() LOG_SVC_ENTER((TFN_VSNS_INI, 0, address))
289#define LOG_VSNS_INI_LEAVE(state) LOG_SVC_LEAVE((TFN_VSNS_INI, state, address))
290
291#define LOG_VXSNS_CTX_ENTER(p_excinf) LOG_SVC_ENTER((TFN_VXSNS_CTX, 1, p_excinf, address))
292#define LOG_VXSNS_CTX_LEAVE(state) LOG_SVC_LEAVE((TFN_VXSNS_CTX, state, address))
293#define LOG_VXSNS_LOC_ENTER(p_excinf) LOG_SVC_ENTER((TFN_VXSNS_LOC, 1, p_excinf, address))
294#define LOG_VXSNS_LOC_LEAVE(state) LOG_SVC_LEAVE((TFN_VXSNS_LOC, state, address))
295#define LOG_VXSNS_DSP_ENTER(p_excinf) LOG_SVC_ENTER((TFN_VXSNS_DSP, 1, p_excinf, address))
296#define LOG_VXSNS_DSP_LEAVE(state) LOG_SVC_LEAVE((TFN_VXSNS_DSP, state, address))
297#define LOG_VXSNS_DPN_ENTER(p_excinf) LOG_SVC_ENTER((TFN_VXSNS_DPN, 1, p_excinf, address))
298#define LOG_VXSNS_DPN_LEAVE(state) LOG_SVC_LEAVE((TFN_VXSNS_DPN, state, address))
299#define LOG_VXSNS_TEX_ENTER(p_excinf) LOG_SVC_ENTER((TFN_VXSNS_TEX, 1, p_excinf, address))
300#define LOG_VXSNS_TEX_LEAVE(state) LOG_SVC_LEAVE((TFN_VXSNS_TEX, state, address))
301#define LOG_VXGET_TIM_ENTER(p_sysutim) LOG_SVC_ENTER((TFN_VXGET_TIM, 1, p_sysutim, address))
302#define LOG_VXGET_TIM_LEAVE(ercd, sysutim) LOG_SVC_LEAVE((TFN_VXGET_TIM, ercd, address))
303
304#define LOG_CHG_IPM_ENTER(ipm) LOG_SVC_ENTER((TFN_CHG_IPM, 1, ipm, address))
305#define LOG_CHG_IPM_LEAVE(ercd) LOG_SVC_LEAVE((TFN_CHG_IPM, ercd, address))
306#define LOG_GET_IPM_ENTER(p_ipm) LOG_SVC_ENTER((TFN_GET_IPM, 1, p_ipm, address))
307#define LOG_GET_IPM_LEAVE(ercd, ipm) LOG_SVC_LEAVE((TFN_GET_IPM, ercd, address))
308#define LOG_ENA_INT_ENTER() LOG_SVC_ENTER((TFN_ENA_INT, 0, address))
309#define LOG_ENA_INT_LEAVE(ercd) LOG_SVC_LEAVE((TFN_ENA_INT, ercd, address))
310#define LOG_DIS_INT_ENTER() LOG_SVC_ENTER((TFN_DIS_INT, 0, address))
311#define LOG_DIS_INT_LEAVE(ercd) LOG_SVC_LEAVE((TFN_DIS_INT, ercd, address))
312
313
314#endif /* _TOOL_CONFIG_H_ */
Note: See TracBrowser for help on using the repository browser.