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

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

initial

File size: 20.9 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) 2000-2003 by Embedded and Real-Time Systems Laboratory
7 * Toyohashi Univ. of Technology, JAPAN
8 * 2003 by Advanced Data Controls, Corp
9 *
10 * 上記著作権者
11は,以下の (1)〜(4) の条件か,Free Software Foundation
12 * によってå…
13¬è¡¨ã•ã‚Œã¦ã„ã‚‹ GNU General Public License の Version 2 に記
14 * 述されている条件を満たす場合に限り,本ソフトウェア(本ソフトウェア
15 * を改変したものを含む.以下同じ)を使用・複製・改変・再é…
16å¸ƒï¼ˆä»¥ä¸‹ï¼Œ
17 * 利用と呼ぶ)することを無償で許諾する.
18 * (1) 本ソフトウェアをソースコードの形で利用する場合には,上記の著作
19 * 権表示,この利用条件および下記の無保証規定が,そのままの形でソー
20 * スコード中に含まれていること.
21 * (2) 本ソフトウェアを,ライブラリ形式など,他のソフトウェア開発に使
22 * 用できる形で再é…
23å¸ƒã™ã‚‹å ´åˆã«ã¯ï¼Œå†é…
24å¸ƒã«ä¼´ã†ãƒ‰ã‚­ãƒ¥ãƒ¡ãƒ³ãƒˆï¼ˆåˆ©ç”¨
25 * 者
26マニュアルなど)に,上記の著作権表示,この利用条件および下記
27 * の無保証規定を掲載すること.
28 * (3) 本ソフトウェアを,機器に組み込むなど,他のソフトウェア開発に使
29 * 用できない形で再é…
30å¸ƒã™ã‚‹å ´åˆã«ã¯ï¼Œæ¬¡ã®ã„ずれかの条件を満たすこ
31 * と.
32 * (a) 再é…
33å¸ƒã«ä¼´ã†ãƒ‰ã‚­ãƒ¥ãƒ¡ãƒ³ãƒˆï¼ˆåˆ©ç”¨è€…
34マニュアルなど)に,上記の著
35 * 作権表示,この利用条件および下記の無保証規定を掲載すること.
36 * (b) 再é…
37å¸ƒã®å½¢æ…
38‹ã‚’,別に定める方法によって,TOPPERSプロジェクトに
39 * 報告すること.
40 * (4) 本ソフトウェアの利用により直接的または間接的に生じるいかなる損
41 * 害からも,上記著作権者
42およびTOPPERSプロジェクトをå…
43è²¬ã™ã‚‹ã“と.
44 *
45 * 本ソフトウェアは,無保証で提供されているものである.上記著作権者
46お
47 * よびTOPPERSプロジェクトは,本ソフトウェアに関して,その適用可能性も
48 * 含めて,いかなる保証も行わない.また,本ソフトウェアの利用により直
49 * 接的または間接的に生じたいかなる損害に関しても,その責任を負わない.
50 *
51 * @(#) $Id: tool_config.h,v 1.5 2007/01/05 02:02:38 honda Exp $
52 */
53
54/*
55 * 開発環境依存モジュール
56 *
57 * このインクルードファイルは,t_config.h のみからインクルードされる.
58 * 他のファイルから直接インクルードしてはならない.
59 */
60
61#ifndef _TOOL_CONFIG_H_
62#define _TOOL_CONFIG_H_
63
64/*
65 * ラベルの別名を定義するためのマクロ
66 */
67#define _LABEL_ALIAS(new_label, defined_label) \
68 asm(".globl " #new_label "\n" #new_label " = " #defined_label);
69#define LABEL_ALIAS(x, y) _LABEL_ALIAS(x, y)
70
71#define __EMPTY_LABEL(x,y) x y[]
72
73/*
74 * atexit の処理とデストラクタの実行
75 */
76#ifndef _MACRO_ONLY
77#pragma weak software_term_hook
78
79Inline void
80call_atexit()
81{
82 extern void software_term_hook(void);
83 volatile FP fp = software_term_hook;
84
85 /*
86 * software_term_hookへのポインタを,一旦volatile FP型のfpに
87 * 代å…
88¥ã—てから使うのは,0との比較が最適化で削除されないよう
89 * にするためである.
90 */
91 if (fp != 0) {
92 (*fp)();
93 }
94}
95
96#endif /* _MACRO_ONLY */
97
98/*
99 * GHS Event Analyzer用のトレースログ設定
100 */
101#ifdef GHS_HOOK
102#include "hook.h"
103
104#define hook_initialize() tool_initialize()
105
106#define LOG_INH_ENTER(inhno)
107#define LOG_INH_LEAVE(inhno)
108
109#define LOG_ISR_ENTER(intno)
110#define LOG_ISR_LEAVE(intno)
111
112#define LOG_CYC_ENTER(cyccb)
113#define LOG_CYC_LEAVE(cyccb)
114
115#define LOG_EXC_ENTER(excno)
116#define LOG_EXC_LEAVE(excno)
117
118#define LOG_TEX_ENTER(texptn)
119#define LOG_TEX_LEAVE(texptn)
120
121#define LOG_TSKSTAT(tcb) sts_hook(TSKID(tcb));
122
123#define LOG_DSP_ENTER(tcb)
124#define LOG_DSP_LEAVE(tcb)
125
126#define LOG_ACT_TSK_ENTER(tskid) sys_hook1(THF_TSK, TFN_ACT_TSK, (int)tskid);
127#define LOG_ACT_TSK_LEAVE(ercd) trc_rtn_hook(THF_TSK, TFN_ACT_TSK, ercd);
128#define LOG_IACT_TSK_ENTER(tskid) sys_hook1_i(THF_TSK, TFN_IACT_TSK, (int)tskid);
129#define LOG_IACT_TSK_LEAVE(ercd) trc_rtn_hook(THF_TSK, TFN_IACT_TSK, ercd);
130#define LOG_CAN_ACT_ENTER(tskid) sys_hook1(THF_TSK, TFN_CAN_ACT, (int)tskid);
131#define LOG_CAN_ACT_LEAVE(ercd) trc_rtn_hook(THF_TSK, TFN_CAN_ACT, tcb->actcnt);
132#define LOG_EXT_TSK_ENTER() sys_hook0(THF_TSK, TFN_EXT_TSK);
133#define LOG_TER_TSK_ENTER(tskid) sys_hook1(THF_TSK, TFN_TER_TSK, (int)tskid);
134#define LOG_TER_TSK_LEAVE(ercd) trc_rtn_hook(THF_TSK, TFN_TER_TSK, ercd);
135#define LOG_CHG_PRI_ENTER(tskid, tskpri) sys_hook2(THF_TSK, TFN_CHG_PRI, (int)tskid, (int)tskpri);
136#define LOG_CHG_PRI_LEAVE(ercd) trc_rtn_hook(THF_TSK, TFN_CHG_PRI, ercd);
137#define LOG_GET_PRI_ENTER(tskid, p_tskpri)
138#define LOG_GET_PRI_LEAVE(ercd, tskpri)
139#define LOG_SLP_TSK_ENTER() sys_hook0(THF_TSKS, TFN_SLP_TSK);
140#define LOG_SLP_TSK_LEAVE(ercd) trc_rtn_hook(THF_TSKS, TFN_SLP_TSK, ercd);
141#define LOG_TSLP_TSK_ENTER(tmout) sys_hook1(THF_TSKS, TFN_TSLP_TSK, (int)tmout);
142#define LOG_TSLP_TSK_LEAVE(ercd) trc_rtn_hook(THF_TSKS, TFN_TSLP_TSK, ercd);
143#define LOG_WUP_TSK_ENTER(tskid) sys_hook1(THF_TSKS, TFN_WUP_TSK, (int)tskid);
144#define LOG_WUP_TSK_LEAVE(ercd) trc_rtn_hook(THF_TSKS, TFN_WUP_TSK, ercd);
145#define LOG_IWUP_TSK_ENTER(tskid) sys_hook1_i(THF_TSKS, TFN_IWUP_TSK, (int)tskid);
146#define LOG_IWUP_TSK_LEAVE(ercd) trc_rtn_hook(THF_TSKS, TFN_IWUP_TSK, ercd);
147#define LOG_CAN_WUP_ENTER(tskid) sys_hook1(THF_TSKS, TFN_CAN_WUP, (int)tskid);
148#define LOG_CAN_WUP_LEAVE(ercd) trc_rtn_hook(THF_TSKS, TFN_CAN_WUP, tcb->wupcnt);
149#define LOG_REL_WAI_ENTER(tskid) sys_hook1(THF_TSKS, TFN_REL_WAI, (int)tskid);
150#define LOG_REL_WAI_LEAVE(ercd) trc_rtn_hook(THF_TSKS, TFN_REL_WAI, ercd);
151#define LOG_IREL_WAI_ENTER(tskid) sys_hook1_i(THF_TSKS, TFN_IREL_WAI, (int)tskid);
152#define LOG_IREL_WAI_LEAVE(ercd) trc_rtn_hook(THF_TSKS, TFN_IREL_WAI, ercd);
153#define LOG_SUS_TSK_ENTER(tskid) sys_hook1(THF_TSKS, TFN_SUS_TSK, (int)tskid);
154#define LOG_SUS_TSK_LEAVE(ercd) trc_rtn_hook(THF_TSKS, TFN_SUS_TSK, ercd);
155#define LOG_RSM_TSK_ENTER(tskid) sys_hook1(THF_TSKS, TFN_RSM_TSK, (int)tskid);
156#define LOG_RSM_TSK_LEAVE(ercd) trc_rtn_hook(THF_TSKS, TFN_RSM_TSK, ercd);
157#define LOG_FRSM_TSK_ENTER(tskid)
158#define LOG_FRSM_TSK_LEAVE(ercd)
159#define LOG_DLY_TSK_ENTER(dlytim) sys_hook1(THF_TSKS, TFN_DLY_TSK, (int)dlytim);
160#define LOG_DLY_TSK_LEAVE(ercd) trc_rtn_hook(THF_TSKS, TFN_DLY_TSK, winfo.wercd);
161#define LOG_RAS_TEX_ENTER(tskid, rasptn) sys_hook2(THF_TEX, TFN_RAS_TEX, (int)tskid, (int)rasptn);
162#define LOG_RAS_TEX_LEAVE(ercd) trc_rtn_hook(THF_TEX, TFN_RAS_TEX, ercd);
163#define LOG_IRAS_TEX_ENTER(tskid, rasptn) sys_hook2_i(THF_TEX, TFN_IRAS_TEX, (int)tskid, (int)rasptn);
164#define LOG_IRAS_TEX_LEAVE(ercd) trc_rtn_hook(THF_TEX, TFN_IRAS_TEX, ercd);
165#define LOG_DIS_TEX_ENTER() sys_hook0(THF_TEX, TFN_DIS_TEX);
166#define LOG_DIS_TEX_LEAVE(ercd) trc_rtn_hook(THF_TEX, TFN_DIS_TEX, ercd);
167#define LOG_ENA_TEX_ENTER() sys_hook0(THF_TEX, TFN_ENA_TEX);
168#define LOG_ENA_TEX_LEAVE(ercd) trc_rtn_hook(THF_TEX, TFN_ENA_TEX, ercd);
169#define LOG_SNS_TEX_ENTER()
170#define LOG_SNS_TEX_LEAVE(state)
171#define LOG_SIG_SEM_ENTER(semid) sys_hook1(THF_SEM, TFN_SIG_SEM, (int)semid);
172#define LOG_SIG_SEM_LEAVE(ercd) trc_rtn_hook(THF_SEM, TFN_SIG_SEM, ercd);
173#define LOG_ISIG_SEM_ENTER(semid) sys_hook1_i(THF_SEM, TFN_ISIG_SEM, (int)semid);
174#define LOG_ISIG_SEM_LEAVE(ercd) trc_rtn_hook(THF_SEM, TFN_ISIG_SEM, ercd);
175#define LOG_WAI_SEM_ENTER(semid) sys_hook1(THF_SEM, TFN_WAI_SEM, (int)semid);
176#define LOG_WAI_SEM_LEAVE(ercd) trc_rtn_hook(THF_SEM, TFN_WAI_SEM, ercd);
177#define LOG_POL_SEM_ENTER(semid) sys_hook1(THF_SEM, TFN_POL_SEM, (int)semid);
178#define LOG_POL_SEM_LEAVE(ercd) trc_rtn_hook(THF_SEM, TFN_POL_SEM, ercd);
179#define LOG_TWAI_SEM_ENTER(semid, tmout) sys_hook2(THF_SEM, TFN_TWAI_SEM, (int)semid, (int)tmout);
180#define LOG_TWAI_SEM_LEAVE(ercd) trc_rtn_hook(THF_SEM, TFN_TWAI_SEM, ercd);
181#define LOG_SET_FLG_ENTER(flgid, setptn) sys_hook2(THF_FLG, TFN_SET_FLG, (int)flgid, (int)setptn);
182#define LOG_SET_FLG_LEAVE(ercd) trc_rtn_hook(THF_FLG, TFN_SET_FLG);
183#define LOG_ISET_FLG_ENTER(flgid, setptn) sys_hook2_i(THF_FLG, TFN_ISET_FLG, (int)flgid, (int)setptn);
184#define LOG_ISET_FLG_LEAVE(ercd) trc_rtn_hook(THF_FLG, TFN_ISET_FLG);
185#define LOG_CLR_FLG_ENTER(flgid, clrptn) sys_hook2(THF_FLG, TFN_CLR_FLG, (int)flgid, (int)clrptn);
186#define LOG_CLR_FLG_LEAVE(ercd) trc_rtn_hook(THF_FLG, TFN_CLR_FLG);
187#define LOG_WAI_FLG_ENTER(flgid, waiptn, wfmode, p_flgptn) sys_hook3(THF_FLG, TFN_WAI_FLG, (int)flgid, (int)waiptn, (int)wfmode);
188#define LOG_WAI_FLG_LEAVE(ercd, flgptn) trc_rtn_hook(THF_FLG, TFN_WAI_FLG, ercd);
189#define LOG_POL_FLG_ENTER(flgid, waiptn, wfmode, p_flgptn) sys_hook3(THF_FLG, TFN_POL_FLG, (int)flgid, (int)waiptn, (int)wfmode);
190#define LOG_POL_FLG_LEAVE(ercd, flgptn) trc_rtn_hook(THF_FLG, TFN_POL_FLG, ercd);
191#define LOG_TWAI_FLG_ENTER(flgid, waiptn, wfmode, p_flgptn, tmout) sys_hook4(THF_FLG, TFN_TWAI_FLG, (int)flgid, (int)waiptn, (int)wfmode, (int)tmout);
192#define LOG_TWAI_FLG_LEAVE(ercd, flgptn) trc_rtn_hook(THF_FLG, TFN_TWAI_FLG, ercd);
193#define LOG_SND_DTQ_ENTER(dtqid, data) sys_hook2(THF_DTQ, TFN_SND_DTQ, (int)dtqid, (int)data);
194#define LOG_SND_DTQ_LEAVE(ercd) trc_rtn_hook(THF_DTQ, TFN_SND_DTQ, ercd);
195#define LOG_PSND_DTQ_ENTER(dtqid, data) sys_hook2(THF_DTQ, TFN_PSND_DTQ, (int)dtqid, (int)data);
196#define LOG_PSND_DTQ_LEAVE(ercd) trc_rtn_hook(THF_DTQ, TFN_PSND_DTQ, ercd);
197#define LOG_IPSND_DTQ_ENTER(dtqid, data) sys_hook2_i(THF_DTQ, TFN_IPSND_DTQ, (int)dtqid, (int)data);
198#define LOG_IPSND_DTQ_LEAVE(ercd) trc_rtn_hook(THF_DTQ, TFN_IPSND_DTQ, ercd);
199#define LOG_TSND_DTQ_ENTER(dtqid, data, tmout) sys_hook3(THF_DTQ, TFN_TSND_DTQ, (int)dtqid, (int)data, (int)tmout);
200#define LOG_TSND_DTQ_LEAVE(ercd) trc_rtn_hook(THF_DTQ, TFN_TSND_DTQ, ercd);
201#define LOG_FSND_DTQ_ENTER(dtqid, data) sys_hook2(THF_DTQ, TFN_FSND_DTQ, (int)dtqid, (int)data);
202#define LOG_FSND_DTQ_LEAVE(ercd) trc_rtn_hook(THF_DTQ, TFN_FSND_DTQ);
203#define LOG_IFSND_DTQ_ENTER(dtqid, data) sys_hook2_i(THF_DTQ, TFN_IFSND_DTQ, (int)dtqid, (int)data);
204#define LOG_IFSND_DTQ_LEAVE(ercd) trc_rtn_hook(THF_DTQ, TFN_IFSND_DTQ);
205#define LOG_RCV_DTQ_ENTER(dtqid, p_data) sys_hook1(THF_DTQ, TFN_RCV_DTQ, (int)dtqid);
206#define LOG_RCV_DTQ_LEAVE(ercd, data) trc_rtn_hook(THF_DTQ, TFN_RCV_DTQ, ercd);
207#define LOG_PRCV_DTQ_ENTER(dtqid, p_data) sys_hook1(THF_DTQ, TFN_PRCV_DTQ, (int)dtqid);
208#define LOG_PRCV_DTQ_LEAVE(ercd, data) trc_rtn_hook(THF_DTQ, TFN_PRCV_DTQ, ercd);
209#define LOG_TRCV_DTQ_ENTER(dtqid, p_data, tmout) sys_hook1(THF_DTQ, TFN_TRCV_DTQ, (int)dtqid);
210#define LOG_TRCV_DTQ_LEAVE(ercd, data) trc_rtn_hook(THF_DTQ, TFN_TRCV_DTQ, ercd);
211#define LOG_SND_MBX_ENTER(mbxid, pk_msg) sys_hook2(THF_MBX, TFN_SND_MBX, (int)mbxid, (int)pk_msg);
212#define LOG_SND_MBX_LEAVE(ercd) trc_rtn_hook(THF_MBX, TFN_SND_MBX, ercd);
213#define LOG_RCV_MBX_ENTER(mbxid, ppk_msg) sys_hook1(THF_MBX, TFN_RCV_MBX, (int)mbxid);
214#define LOG_RCV_MBX_LEAVE(ercd, pk_msg) trc_rtn_hook(THF_MBX, TFN_RCV_MBX, ercd);
215#define LOG_PRCV_MBX_ENTER(mbxid, ppk_msg) sys_hook1(THF_MBX, TFN_PRCV_MBX, (int)mbxid);
216#define LOG_PRCV_MBX_LEAVE(ercd, pk_msg) trc_rtn_hook(THF_MBX, TFN_PRCV_MBX, ercd);
217#define LOG_TRCV_MBX_ENTER(mbxid, ppk_msg, tmout) sys_hook2(THF_MBX, TFN_TRCV_MBX, (int)mbxid, (int)tmout);
218#define LOG_TRCV_MBX_LEAVE(ercd, pk_msg) trc_rtn_hook(THF_MBX, TFN_TRCV_MBX, ercd);
219#define LOG_GET_MPF_ENTER(mpfid, p_blk) sys_hook1(THF_MPF, TFN_GET_MPF, (int)mpfid);
220#define LOG_GET_MPF_LEAVE(ercd, blk) trc_rtn_hook(THF_MPF, TFN_GET_MPF, ercd);
221#define LOG_PGET_MPF_ENTER(mpfid, p_blk) sys_hook1(THF_MPF, TFN_PGET_MPF, (int)mpfid);
222#define LOG_PGET_MPF_LEAVE(ercd, blk) trc_rtn_hook(THF_MPF, TFN_PGET_MPF, ercd);
223#define LOG_TGET_MPF_ENTER(mpfid, p_blk, tmout) sys_hook2(THF_MPF, TFN_TGET_MPF, (int)mpfid, (int)tmout);
224#define LOG_TGET_MPF_LEAVE(ercd, blk) trc_rtn_hook(THF_MPF, TFN_TGET_MPF, ercd);
225#define LOG_REL_MPF_ENTER(mpfid, blk) sys_hook2(THF_MPF, TFN_REL_MPF, (int)mpfid, (int)blk);
226#define LOG_REL_MPF_LEAVE(ercd) trc_rtn_hook(THF_MPF, TFN_REL_MPF, ercd);
227#define LOG_SET_TIM_ENTER(p_systim) sys_hook1(THF_TIM, TFN_SET_TIM, (int)p_systim);
228#define LOG_SET_TIM_LEAVE(ercd) trc_rtn_hook(THF_TIM, TFN_SET_TIM);
229#define LOG_GET_TIM_ENTER(p_systim)
230#define LOG_GET_TIM_LEAVE(ercd, systim)
231#define LOG_ISIG_TIM_ENTER()
232#define LOG_ISIG_TIM_LEAVE(ercd)
233#define LOG_STA_CYC_ENTER(cycid) sys_hook1(THF_TIM, TFN_STA_CYC, (int)cycid);
234#define LOG_STA_CYC_LEAVE(ercd) trc_rtn_hook(THF_TIM, TFN_STA_CYC);
235#define LOG_STP_CYC_ENTER(cycid) sys_hook1(THF_TIM, TFN_STP_CYC, (int)cycid);
236#define LOG_STP_CYC_LEAVE(ercd) trc_rtn_hook(THF_TIM, TFN_STP_CYC);
237#define LOG_ROT_RDQ_ENTER(tskpri) sys_hook1(THF_SYS, TFN_ROT_RDQ, (int)tskpri);
238#define LOG_ROT_RDQ_LEAVE(ercd) trc_rtn_hook(THF_SYS, TFN_ROT_RDQ);
239#define LOG_IROT_RDQ_ENTER(tskpri) sys_hook1_i(THF_SYS, TFN_IROT_RDQ, (int)tskpri);
240#define LOG_IROT_RDQ_LEAVE(ercd) trc_rtn_hook(THF_SYS, TFN_IROT_RDQ);
241#define LOG_GET_TID_ENTER(p_tskid)
242#define LOG_GET_TID_LEAVE(ercd, tskid)
243#define LOG_IGET_TID_ENTER(p_tskid)
244#define LOG_IGET_TID_LEAVE(ercd, tskid)
245#define LOG_LOC_CPU_ENTER() sys_hook0(THF_SYS, TFN_LOC_CPU);
246#define LOG_LOC_CPU_LEAVE(ercd) trc_rtn_hook(THF_SYS, TFN_LOC_CPU);
247#define LOG_ILOC_CPU_ENTER() sys_hook0_i(THF_SYS, TFN_ILOC_CPU);
248#define LOG_ILOC_CPU_LEAVE(ercd) trc_rtn_hook(THF_SYS, TFN_ILOC_CPU);
249#define LOG_UNL_CPU_ENTER() sys_hook0(THF_SYS, TFN_UNL_CPU);
250#define LOG_UNL_CPU_LEAVE(ercd) trc_rtn_hook(THF_SYS, TFN_UNL_CPU);
251#define LOG_IUNL_CPU_ENTER() sys_hook0_i(THF_SYS, TFN_IUNL_CPU);
252#define LOG_IUNL_CPU_LEAVE(ercd) trc_rtn_hook(THF_SYS, TFN_IUNL_CPU);
253#define LOG_DIS_DSP_ENTER() sys_hook0(THF_SYS, TFN_DIS_DSP);
254#define LOG_DIS_DSP_LEAVE(ercd) trc_rtn_hook(THF_SYS, TFN_DIS_DSP);
255#define LOG_ENA_DSP_ENTER() sys_hook0(THF_SYS, TFN_ENA_DSP);
256#define LOG_ENA_DSP_LEAVE(ercd) trc_rtn_hook(THF_SYS, TFN_ENA_DSP);
257#define LOG_SNS_CTX_ENTER()
258#define LOG_SNS_CTX_LEAVE(state)
259#define LOG_SNS_LOC_ENTER()
260#define LOG_SNS_LOC_LEAVE(state)
261#define LOG_SNS_DSP_ENTER()
262#define LOG_SNS_DSP_LEAVE(state)
263#define LOG_SNS_DPN_ENTER()
264#define LOG_SNS_DPN_LEAVE(state)
265#define LOG_VSNS_INI_ENTER()
266#define LOG_VSNS_INI_LEAVE(state)
267#define LOG_VXSNS_CTX_ENTER(p_excinf)
268#define LOG_VXSNS_CTX_LEAVE(state)
269#define LOG_VXSNS_LOC_ENTER(p_excinf)
270#define LOG_VXSNS_LOC_LEAVE(state)
271#define LOG_VXSNS_DSP_ENTER(p_excinf)
272#define LOG_VXSNS_DSP_LEAVE(state)
273#define LOG_VXSNS_DPN_ENTER(p_excinf)
274#define LOG_VXSNS_DPN_LEAVE(state)
275#define LOG_VXSNS_TEX_ENTER(p_excinf)
276#define LOG_VXSNS_TEX_LEAVE(state)
277#define LOG_VXGET_TIM_ENTER(p_sysutim)
278#define LOG_VXGET_TIM_LEAVE(ercd, sysutim)
279
280#define LOG_CHG_IPM_ENTER(ipm)
281#define LOG_CHG_IPM_LEAVE(ercd)
282#define LOG_GET_IPM_ENTER(p_ipm)
283#define LOG_GET_IPM_LEAVE(ercd, ipm)
284
285#else
286
287#define LOG_INH_LEAVE(inhno)
288
289#define LOG_ISR_ENTER(intno)
290#define LOG_ISR_LEAVE(intno)
291
292#define LOG_CYC_ENTER(cyccb)
293#define LOG_CYC_LEAVE(cyccb)
294
295#define LOG_EXC_ENTER(excno)
296#define LOG_EXC_LEAVE(excno)
297
298#define LOG_TEX_ENTER(texptn)
299#define LOG_TEX_LEAVE(texptn)
300
301#define LOG_TSKSTAT(tcb)
302
303#define LOG_DSP_ENTER(tcb)
304#define LOG_DSP_LEAVE(tcb)
305
306#define LOG_ACT_TSK_ENTER(tskid)
307#define LOG_ACT_TSK_LEAVE(ercd)
308#define LOG_IACT_TSK_ENTER(tskid)
309#define LOG_IACT_TSK_LEAVE(ercd)
310#define LOG_CAN_ACT_ENTER(tskid)
311#define LOG_CAN_ACT_LEAVE(ercd)
312#define LOG_EXT_TSK_ENTER()
313#define LOG_TER_TSK_ENTER(tskid)
314#define LOG_TER_TSK_LEAVE(ercd)
315#define LOG_CHG_PRI_ENTER(tskid, tskpri)
316#define LOG_CHG_PRI_LEAVE(ercd)
317#define LOG_GET_PRI_ENTER(tskid, p_tskpri)
318#define LOG_GET_PRI_LEAVE(ercd, tskpri)
319#define LOG_SLP_TSK_ENTER()
320#define LOG_SLP_TSK_LEAVE(ercd)
321#define LOG_TSLP_TSK_ENTER(tmout)
322#define LOG_TSLP_TSK_LEAVE(ercd)
323#define LOG_WUP_TSK_ENTER(tskid)
324#define LOG_WUP_TSK_LEAVE(ercd)
325#define LOG_IWUP_TSK_ENTER(tskid)
326#define LOG_IWUP_TSK_LEAVE(ercd)
327#define LOG_CAN_WUP_ENTER(tskid)
328#define LOG_CAN_WUP_LEAVE(ercd)
329#define LOG_REL_WAI_ENTER(tskid)
330#define LOG_REL_WAI_LEAVE(ercd)
331#define LOG_IREL_WAI_ENTER(tskid)
332#define LOG_IREL_WAI_LEAVE(ercd)
333#define LOG_SUS_TSK_ENTER(tskid)
334#define LOG_SUS_TSK_LEAVE(ercd)
335#define LOG_RSM_TSK_ENTER(tskid)
336#define LOG_RSM_TSK_LEAVE(ercd)
337#define LOG_FRSM_TSK_ENTER(tskid)
338#define LOG_FRSM_TSK_LEAVE(ercd)
339#define LOG_DLY_TSK_ENTER(dlytim)
340#define LOG_DLY_TSK_LEAVE(ercd)
341#define LOG_RAS_TEX_ENTER(tskid, rasptn)
342#define LOG_RAS_TEX_LEAVE(ercd)
343#define LOG_IRAS_TEX_ENTER(tskid, rasptn)
344#define LOG_IRAS_TEX_LEAVE(ercd)
345#define LOG_DIS_TEX_ENTER()
346#define LOG_DIS_TEX_LEAVE(ercd)
347#define LOG_ENA_TEX_ENTER()
348#define LOG_ENA_TEX_LEAVE(ercd)
349#define LOG_SNS_TEX_ENTER()
350#define LOG_SNS_TEX_LEAVE(state)
351#define LOG_SIG_SEM_ENTER(semid)
352#define LOG_SIG_SEM_LEAVE(ercd)
353#define LOG_ISIG_SEM_ENTER(semid)
354#define LOG_ISIG_SEM_LEAVE(ercd)
355#define LOG_WAI_SEM_ENTER(semid)
356#define LOG_WAI_SEM_LEAVE(ercd)
357#define LOG_POL_SEM_ENTER(semid)
358#define LOG_POL_SEM_LEAVE(ercd)
359#define LOG_TWAI_SEM_ENTER(semid, tmout)
360#define LOG_TWAI_SEM_LEAVE(ercd)
361#define LOG_SET_FLG_ENTER(flgid, setptn)
362#define LOG_SET_FLG_LEAVE(ercd)
363#define LOG_ISET_FLG_ENTER(flgid, setptn)
364#define LOG_ISET_FLG_LEAVE(ercd)
365#define LOG_CLR_FLG_ENTER(flgid, clrptn)
366#define LOG_CLR_FLG_LEAVE(ercd)
367#define LOG_WAI_FLG_ENTER(flgid, waiptn, wfmode, p_flgptn)
368#define LOG_WAI_FLG_LEAVE(ercd, flgptn)
369#define LOG_POL_FLG_ENTER(flgid, waiptn, wfmode, p_flgptn)
370#define LOG_POL_FLG_LEAVE(ercd, flgptn)
371#define LOG_TWAI_FLG_ENTER(flgid, waiptn, wfmode, p_flgptn, tmout)
372#define LOG_TWAI_FLG_LEAVE(ercd, flgptn)
373#define LOG_SND_DTQ_ENTER(dtqid, data)
374#define LOG_SND_DTQ_LEAVE(ercd)
375#define LOG_PSND_DTQ_ENTER(dtqid, data)
376#define LOG_PSND_DTQ_LEAVE(ercd)
377#define LOG_IPSND_DTQ_ENTER(dtqid, data)
378#define LOG_IPSND_DTQ_LEAVE(ercd)
379#define LOG_TSND_DTQ_ENTER(dtqid, data, tmout)
380#define LOG_TSND_DTQ_LEAVE(ercd)
381#define LOG_FSND_DTQ_ENTER(dtqid, data)
382#define LOG_FSND_DTQ_LEAVE(ercd)
383#define LOG_IFSND_DTQ_ENTER(dtqid, data)
384#define LOG_IFSND_DTQ_LEAVE(ercd)
385#define LOG_RCV_DTQ_ENTER(dtqid, p_data)
386#define LOG_RCV_DTQ_LEAVE(ercd, data)
387#define LOG_PRCV_DTQ_ENTER(dtqid, p_data)
388#define LOG_PRCV_DTQ_LEAVE(ercd, data)
389#define LOG_TRCV_DTQ_ENTER(dtqid, p_data, tmout)
390#define LOG_TRCV_DTQ_LEAVE(ercd, data)
391#define LOG_SND_MBX_ENTER(mbxid, pk_msg)
392#define LOG_SND_MBX_LEAVE(ercd)
393#define LOG_RCV_MBX_ENTER(mbxid, ppk_msg)
394#define LOG_RCV_MBX_LEAVE(ercd, pk_msg)
395#define LOG_PRCV_MBX_ENTER(mbxid, ppk_msg)
396#define LOG_PRCV_MBX_LEAVE(ercd, pk_msg)
397#define LOG_TRCV_MBX_ENTER(mbxid, ppk_msg, tmout)
398#define LOG_TRCV_MBX_LEAVE(ercd, pk_msg)
399#define LOG_GET_MPF_ENTER(mpfid, p_blk)
400#define LOG_GET_MPF_LEAVE(ercd, blk)
401#define LOG_PGET_MPF_ENTER(mpfid, p_blk)
402#define LOG_PGET_MPF_LEAVE(ercd, blk)
403#define LOG_TGET_MPF_ENTER(mpfid, p_blk, tmout)
404#define LOG_TGET_MPF_LEAVE(ercd, blk)
405#define LOG_REL_MPF_ENTER(mpfid, blk)
406#define LOG_REL_MPF_LEAVE(ercd)
407#define LOG_SET_TIM_ENTER(p_systim)
408#define LOG_SET_TIM_LEAVE(ercd)
409#define LOG_GET_TIM_ENTER(p_systim)
410#define LOG_GET_TIM_LEAVE(ercd, systim)
411#define LOG_ISIG_TIM_ENTER()
412#define LOG_ISIG_TIM_LEAVE(ercd)
413#define LOG_STA_CYC_ENTER(cycid)
414#define LOG_STA_CYC_LEAVE(ercd)
415#define LOG_STP_CYC_ENTER(cycid)
416#define LOG_STP_CYC_LEAVE(ercd)
417#define LOG_ROT_RDQ_ENTER(tskpri)
418#define LOG_ROT_RDQ_LEAVE(ercd)
419#define LOG_IROT_RDQ_ENTER(tskpri)
420#define LOG_IROT_RDQ_LEAVE(ercd)
421#define LOG_GET_TID_ENTER(p_tskid)
422#define LOG_GET_TID_LEAVE(ercd, tskid)
423#define LOG_IGET_TID_ENTER(p_tskid)
424#define LOG_IGET_TID_LEAVE(ercd, tskid)
425#define LOG_LOC_CPU_ENTER()
426#define LOG_LOC_CPU_LEAVE(ercd)
427#define LOG_ILOC_CPU_ENTER()
428#define LOG_ILOC_CPU_LEAVE(ercd)
429#define LOG_UNL_CPU_ENTER()
430#define LOG_UNL_CPU_LEAVE(ercd)
431#define LOG_IUNL_CPU_ENTER()
432#define LOG_IUNL_CPU_LEAVE(ercd)
433#define LOG_DIS_DSP_ENTER()
434#define LOG_DIS_DSP_LEAVE(ercd)
435#define LOG_ENA_DSP_ENTER()
436#define LOG_ENA_DSP_LEAVE(ercd)
437#define LOG_SNS_CTX_ENTER()
438#define LOG_SNS_CTX_LEAVE(state)
439#define LOG_SNS_LOC_ENTER()
440#define LOG_SNS_LOC_LEAVE(state)
441#define LOG_SNS_DSP_ENTER()
442#define LOG_SNS_DSP_LEAVE(state)
443#define LOG_SNS_DPN_ENTER()
444#define LOG_SNS_DPN_LEAVE(state)
445#define LOG_VSNS_INI_ENTER()
446#define LOG_VSNS_INI_LEAVE(state)
447#define LOG_VXSNS_CTX_ENTER(p_excinf)
448#define LOG_VXSNS_CTX_LEAVE(state)
449#define LOG_VXSNS_LOC_ENTER(p_excinf)
450#define LOG_VXSNS_LOC_LEAVE(state)
451#define LOG_VXSNS_DSP_ENTER(p_excinf)
452#define LOG_VXSNS_DSP_LEAVE(state)
453#define LOG_VXSNS_DPN_ENTER(p_excinf)
454#define LOG_VXSNS_DPN_LEAVE(state)
455#define LOG_VXSNS_TEX_ENTER(p_excinf)
456#define LOG_VXSNS_TEX_LEAVE(state)
457#define LOG_VXGET_TIM_ENTER(p_sysutim)
458#define LOG_VXGET_TIM_LEAVE(ercd, sysutim)
459
460#define LOG_CHG_IPM_ENTER(ipm)
461#define LOG_CHG_IPM_LEAVE(ercd)
462#define LOG_GET_IPM_ENTER(p_ipm)
463#define LOG_GET_IPM_LEAVE(ercd, ipm)
464
465#endif
466
467
468#endif /* _TOOL_CONFIG_H_ */
469
Note: See TracBrowser for help on using the repository browser.