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

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

initial

File size: 21.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) 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/*
75 * atexit の処理とデストラクタの実行
76 */
77#ifndef _MACRO_ONLY
78#pragma weak software_term_hook
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 * トレースログの設定
100 */
101#ifdef GHS_HOOK
102
103#define LOG_INH_ENTER(inhno) /* プロセッサ依存部 */
104#define LOG_INH_LEAVE(inhno) /* プロセッサ依存部 */
105
106#define LOG_ISR_ENTER(intno) /* プロセッサ依存部 */
107#define LOG_ISR_LEAVE(intno) /* プロセッサ依存部 */
108
109#define LOG_CYC_ENTER(cyccb)
110#define LOG_CYC_LEAVE(cyccb)
111
112#define LOG_EXC_ENTER(excno) /* プロセッサ依存部 */
113#define LOG_EXC_LEAVE(excno) /* プロセッサ依存部 */
114
115#define LOG_TEX_ENTER(texptn)
116#define LOG_TEX_LEAVE(texptn)
117
118#define LOG_TSKSTAT(tcb) sts_hook(TSKID(tcb));
119
120#define LOG_DSP_ENTER(tcb) /* プロセッサ依存部 */
121#define LOG_DSP_LEAVE(tcb) /* プロセッサ依存部 */
122
123#define LOG_ACT_TSK_ENTER(tskid) sys_hook1(THF_TSK, TFN_ACT_TSK, (int)tskid);
124#define LOG_ACT_TSK_LEAVE(ercd) trc_rtn_hook(THF_TSK, TFN_ACT_TSK, ercd);
125#define LOG_IACT_TSK_ENTER(tskid) sys_hook1_i(THF_TSK, TFN_IACT_TSK, (int)tskid);
126#define LOG_IACT_TSK_LEAVE(ercd) trc_rtn_hook(THF_TSK, TFN_IACT_TSK, ercd);
127#define LOG_CAN_ACT_ENTER(tskid) sys_hook1(THF_TSK, TFN_CAN_ACT, (int)tskid);
128#define LOG_CAN_ACT_LEAVE(ercd) trc_rtn_hook(THF_TSK, TFN_CAN_ACT, tcb->actcnt);
129#define LOG_EXT_TSK_ENTER() sys_hook0(THF_TSK, TFN_EXT_TSK);
130#define LOG_TER_TSK_ENTER(tskid) sys_hook1(THF_TSK, TFN_TER_TSK, (int)tskid);
131#define LOG_TER_TSK_LEAVE(ercd) trc_rtn_hook(THF_TSK, TFN_TER_TSK, ercd);
132#define LOG_CHG_PRI_ENTER(tskid, tskpri) sys_hook2(THF_TSK, TFN_CHG_PRI, (int)tskid, (int)tskpri);
133#define LOG_CHG_PRI_LEAVE(ercd) trc_rtn_hook(THF_TSK, TFN_CHG_PRI, ercd);
134#define LOG_GET_PRI_ENTER(tskid, p_tskpri)
135#define LOG_GET_PRI_LEAVE(ercd, tskpri)
136#define LOG_SLP_TSK_ENTER() sys_hook0(THF_TSKS, TFN_SLP_TSK);
137#define LOG_SLP_TSK_LEAVE(ercd) trc_rtn_hook(THF_TSKS, TFN_SLP_TSK, ercd);
138#define LOG_TSLP_TSK_ENTER(tmout) sys_hook1(THF_TSKS, TFN_TSLP_TSK, (int)tmout);
139#define LOG_TSLP_TSK_LEAVE(ercd) trc_rtn_hook(THF_TSKS, TFN_TSLP_TSK, ercd);
140#define LOG_WUP_TSK_ENTER(tskid) sys_hook1(THF_TSKS, TFN_WUP_TSK, (int)tskid);
141#define LOG_WUP_TSK_LEAVE(ercd) trc_rtn_hook(THF_TSKS, TFN_WUP_TSK, ercd);
142#define LOG_IWUP_TSK_ENTER(tskid) sys_hook1_i(THF_TSKS, TFN_IWUP_TSK, (int)tskid);
143#define LOG_IWUP_TSK_LEAVE(ercd) trc_rtn_hook(THF_TSKS, TFN_IWUP_TSK, ercd);
144#define LOG_CAN_WUP_ENTER(tskid) sys_hook1(THF_TSKS, TFN_CAN_WUP, (int)tskid);
145#define LOG_CAN_WUP_LEAVE(ercd) trc_rtn_hook(THF_TSKS, TFN_CAN_WUP, tcb->wupcnt);
146#define LOG_REL_WAI_ENTER(tskid) sys_hook1(THF_TSKS, TFN_REL_WAI, (int)tskid);
147#define LOG_REL_WAI_LEAVE(ercd) trc_rtn_hook(THF_TSKS, TFN_REL_WAI, ercd);
148#define LOG_IREL_WAI_ENTER(tskid) sys_hook1_i(THF_TSKS, TFN_IREL_WAI, (int)tskid);
149#define LOG_IREL_WAI_LEAVE(ercd) trc_rtn_hook(THF_TSKS, TFN_IREL_WAI, ercd);
150#define LOG_SUS_TSK_ENTER(tskid) sys_hook1(THF_TSKS, TFN_SUS_TSK, (int)tskid);
151#define LOG_SUS_TSK_LEAVE(ercd) trc_rtn_hook(THF_TSKS, TFN_SUS_TSK, ercd);
152#define LOG_RSM_TSK_ENTER(tskid) sys_hook1(THF_TSKS, TFN_RSM_TSK, (int)tskid);
153#define LOG_RSM_TSK_LEAVE(ercd) trc_rtn_hook(THF_TSKS, TFN_RSM_TSK, ercd);
154#define LOG_FRSM_TSK_ENTER(tskid)
155#define LOG_FRSM_TSK_LEAVE(ercd)
156#define LOG_DLY_TSK_ENTER(dlytim) /*sys_hook1(THF_TSKS, TFN_DLY_TSK, (int)dlytim);*/
157#define LOG_DLY_TSK_LEAVE(ercd) /*trc_rtn_hook(THF_TSKS, TFN_DLY_TSK, winfo.wercd);*/
158#define LOG_RAS_TEX_ENTER(tskid, rasptn) sys_hook2(THF_TEX, TFN_RAS_TEX, (int)tskid, (int)rasptn);
159#define LOG_RAS_TEX_LEAVE(ercd) trc_rtn_hook(THF_TEX, TFN_RAS_TEX, ercd);
160#define LOG_IRAS_TEX_ENTER(tskid, rasptn) sys_hook2_i(THF_TEX, TFN_IRAS_TEX, (int)tskid, (int)rasptn);
161#define LOG_IRAS_TEX_LEAVE(ercd) trc_rtn_hook(THF_TEX, TFN_IRAS_TEX, ercd);
162#define LOG_DIS_TEX_ENTER() sys_hook0(THF_TEX, TFN_DIS_TEX);
163#define LOG_DIS_TEX_LEAVE(ercd) trc_rtn_hook(THF_TEX, TFN_DIS_TEX, ercd);
164#define LOG_ENA_TEX_ENTER() sys_hook0(THF_TEX, TFN_ENA_TEX);
165#define LOG_ENA_TEX_LEAVE(ercd) trc_rtn_hook(THF_TEX, TFN_ENA_TEX, ercd);
166#define LOG_SNS_TEX_ENTER()
167#define LOG_SNS_TEX_LEAVE(state)
168#define LOG_SIG_SEM_ENTER(semid) sys_hook1(THF_SEM, TFN_SIG_SEM, (int)semid);
169#define LOG_SIG_SEM_LEAVE(ercd) trc_rtn_hook(THF_SEM, TFN_SIG_SEM, ercd);
170#define LOG_ISIG_SEM_ENTER(semid) sys_hook1_i(THF_SEM, TFN_ISIG_SEM, (int)semid);
171#define LOG_ISIG_SEM_LEAVE(ercd) trc_rtn_hook(THF_SEM, TFN_ISIG_SEM, ercd);
172#define LOG_WAI_SEM_ENTER(semid) sys_hook1(THF_SEM, TFN_WAI_SEM, (int)semid);
173#define LOG_WAI_SEM_LEAVE(ercd) trc_rtn_hook(THF_SEM, TFN_WAI_SEM, ercd);
174#define LOG_POL_SEM_ENTER(semid) sys_hook1(THF_SEM, TFN_POL_SEM, (int)semid);
175#define LOG_POL_SEM_LEAVE(ercd) trc_rtn_hook(THF_SEM, TFN_POL_SEM, ercd);
176#define LOG_TWAI_SEM_ENTER(semid, tmout) sys_hook2(THF_SEM, TFN_TWAI_SEM, (int)semid, (int)tmout);
177#define LOG_TWAI_SEM_LEAVE(ercd) trc_rtn_hook(THF_SEM, TFN_TWAI_SEM, ercd);
178#define LOG_SET_FLG_ENTER(flgid, setptn) sys_hook2(THF_FLG, TFN_SET_FLG, (int)flgid, (int)setptn);
179#define LOG_SET_FLG_LEAVE(ercd) trc_rtn_hook(THF_FLG, TFN_SET_FLG);
180#define LOG_ISET_FLG_ENTER(flgid, setptn) sys_hook2_i(THF_FLG, TFN_ISET_FLG, (int)flgid, (int)setptn);
181#define LOG_ISET_FLG_LEAVE(ercd) trc_rtn_hook(THF_FLG, TFN_ISET_FLG);
182#define LOG_CLR_FLG_ENTER(flgid, clrptn) sys_hook2(THF_FLG, TFN_CLR_FLG, (int)flgid, (int)clrptn);
183#define LOG_CLR_FLG_LEAVE(ercd) trc_rtn_hook(THF_FLG, TFN_CLR_FLG);
184#define LOG_WAI_FLG_ENTER(flgid, waiptn, wfmode, p_flgptn) sys_hook3(THF_FLG, TFN_WAI_FLG, (int)flgid, (int)waiptn, (int)wfmode);
185#define LOG_WAI_FLG_LEAVE(ercd, flgptn) trc_rtn_hook(THF_FLG, TFN_WAI_FLG, ercd);
186#define LOG_POL_FLG_ENTER(flgid, waiptn, wfmode, p_flgptn) sys_hook3(THF_FLG, TFN_POL_FLG, (int)flgid, (int)waiptn, (int)wfmode);
187#define LOG_POL_FLG_LEAVE(ercd, flgptn) trc_rtn_hook(THF_FLG, TFN_POL_FLG, ercd);
188#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);
189#define LOG_TWAI_FLG_LEAVE(ercd, flgptn) trc_rtn_hook(THF_FLG, TFN_TWAI_FLG, ercd);
190#define LOG_SND_DTQ_ENTER(dtqid, data) sys_hook2(THF_DTQ, TFN_SND_DTQ, (int)dtqid, (int)data);
191#define LOG_SND_DTQ_LEAVE(ercd) trc_rtn_hook(THF_DTQ, TFN_SND_DTQ, ercd);
192#define LOG_PSND_DTQ_ENTER(dtqid, data) sys_hook2(THF_DTQ, TFN_PSND_DTQ, (int)dtqid, (int)data);
193#define LOG_PSND_DTQ_LEAVE(ercd) trc_rtn_hook(THF_DTQ, TFN_PSND_DTQ, ercd);
194#define LOG_IPSND_DTQ_ENTER(dtqid, data) sys_hook2_i(THF_DTQ, TFN_IPSND_DTQ, (int)dtqid, (int)data);
195#define LOG_IPSND_DTQ_LEAVE(ercd) trc_rtn_hook(THF_DTQ, TFN_IPSND_DTQ, ercd);
196#define LOG_TSND_DTQ_ENTER(dtqid, data, tmout) sys_hook3(THF_DTQ, TFN_TSND_DTQ, (int)dtqid, (int)data, (int)tmout);
197#define LOG_TSND_DTQ_LEAVE(ercd) trc_rtn_hook(THF_DTQ, TFN_TSND_DTQ, ercd);
198#define LOG_FSND_DTQ_ENTER(dtqid, data) sys_hook2(THF_DTQ, TFN_FSND_DTQ, (int)dtqid, (int)data);
199#define LOG_FSND_DTQ_LEAVE(ercd) trc_rtn_hook(THF_DTQ, TFN_FSND_DTQ);
200#define LOG_IFSND_DTQ_ENTER(dtqid, data) sys_hook2_i(THF_DTQ, TFN_IFSND_DTQ, (int)dtqid, (int)data);
201#define LOG_IFSND_DTQ_LEAVE(ercd) trc_rtn_hook(THF_DTQ, TFN_IFSND_DTQ);
202#define LOG_RCV_DTQ_ENTER(dtqid, p_data) sys_hook1(THF_DTQ, TFN_RCV_DTQ, (int)dtqid);
203#define LOG_RCV_DTQ_LEAVE(ercd, data) trc_rtn_hook(THF_DTQ, TFN_RCV_DTQ, ercd);
204#define LOG_PRCV_DTQ_ENTER(dtqid, p_data) sys_hook1(THF_DTQ, TFN_PRCV_DTQ, (int)dtqid);
205#define LOG_PRCV_DTQ_LEAVE(ercd, data) trc_rtn_hook(THF_DTQ, TFN_PRCV_DTQ, ercd);
206#define LOG_TRCV_DTQ_ENTER(dtqid, p_data, tmout) sys_hook1(THF_DTQ, TFN_TRCV_DTQ, (int)dtqid);
207#define LOG_TRCV_DTQ_LEAVE(ercd, data) trc_rtn_hook(THF_DTQ, TFN_TRCV_DTQ, ercd);
208#define LOG_SND_MBX_ENTER(mbxid, pk_msg) sys_hook2(THF_MBX, TFN_SND_MBX, (int)mbxid, (int)pk_msg);
209#define LOG_SND_MBX_LEAVE(ercd) trc_rtn_hook(THF_MBX, TFN_SND_MBX, ercd);
210#define LOG_RCV_MBX_ENTER(mbxid, ppk_msg) sys_hook1(THF_MBX, TFN_RCV_MBX, (int)mbxid);
211#define LOG_RCV_MBX_LEAVE(ercd, pk_msg) trc_rtn_hook(THF_MBX, TFN_RCV_MBX, ercd);
212#define LOG_PRCV_MBX_ENTER(mbxid, ppk_msg) sys_hook1(THF_MBX, TFN_PRCV_MBX, (int)mbxid);
213#define LOG_PRCV_MBX_LEAVE(ercd, pk_msg) trc_rtn_hook(THF_MBX, TFN_PRCV_MBX, ercd);
214#define LOG_TRCV_MBX_ENTER(mbxid, ppk_msg, tmout) sys_hook2(THF_MBX, TFN_TRCV_MBX, (int)mbxid, (int)tmout);
215#define LOG_TRCV_MBX_LEAVE(ercd, pk_msg) trc_rtn_hook(THF_MBX, TFN_TRCV_MBX, ercd);
216#define LOG_GET_MPF_ENTER(mpfid, p_blk) sys_hook1(THF_MPF, TFN_GET_MPF, (int)mpfid);
217#define LOG_GET_MPF_LEAVE(ercd, blk) trc_rtn_hook(THF_MPF, TFN_GET_MPF, ercd);
218#define LOG_PGET_MPF_ENTER(mpfid, p_blk) sys_hook1(THF_MPF, TFN_PGET_MPF, (int)mpfid);
219#define LOG_PGET_MPF_LEAVE(ercd, blk) trc_rtn_hook(THF_MPF, TFN_PGET_MPF, ercd);
220#define LOG_TGET_MPF_ENTER(mpfid, p_blk, tmout) sys_hook2(THF_MPF, TFN_TGET_MPF, (int)mpfid, (int)tmout);
221#define LOG_TGET_MPF_LEAVE(ercd, blk) trc_rtn_hook(THF_MPF, TFN_TGET_MPF, ercd);
222#define LOG_REL_MPF_ENTER(mpfid, blk) sys_hook2(THF_MPF, TFN_REL_MPF, (int)mpfid, (int)blk);
223#define LOG_REL_MPF_LEAVE(ercd) trc_rtn_hook(THF_MPF, TFN_REL_MPF, ercd);
224#define LOG_SET_TIM_ENTER(p_systim) sys_hook1(THF_TIM, TFN_SET_TIM, (int)p_systim);
225#define LOG_SET_TIM_LEAVE(ercd) trc_rtn_hook(THF_TIM, TFN_SET_TIM);
226#define LOG_GET_TIM_ENTER(p_systim)
227#define LOG_GET_TIM_LEAVE(ercd, systim)
228#define LOG_ISIG_TIM_ENTER()
229#define LOG_ISIG_TIM_LEAVE(ercd)
230#define LOG_STA_CYC_ENTER(cycid) sys_hook1(THF_TIM, TFN_STA_CYC, (int)cycid);
231#define LOG_STA_CYC_LEAVE(ercd) trc_rtn_hook(THF_TIM, TFN_STA_CYC);
232#define LOG_STP_CYC_ENTER(cycid) sys_hook1(THF_TIM, TFN_STP_CYC, (int)cycid);
233#define LOG_STP_CYC_LEAVE(ercd) trc_rtn_hook(THF_TIM, TFN_STP_CYC);
234#define LOG_ROT_RDQ_ENTER(tskpri) sys_hook1(THF_SYS, TFN_ROT_RDQ, (int)tskpri);
235#define LOG_ROT_RDQ_LEAVE(ercd) trc_rtn_hook(THF_SYS, TFN_ROT_RDQ);
236#define LOG_IROT_RDQ_ENTER(tskpri) sys_hook1_i(THF_SYS, TFN_IROT_RDQ, (int)tskpri);
237#define LOG_IROT_RDQ_LEAVE(ercd) trc_rtn_hook(THF_SYS, TFN_IROT_RDQ);
238#define LOG_GET_TID_ENTER(p_tskid)
239#define LOG_GET_TID_LEAVE(ercd, tskid)
240#define LOG_IGET_TID_ENTER(p_tskid)
241#define LOG_IGET_TID_LEAVE(ercd, tskid)
242#define LOG_LOC_CPU_ENTER() sys_hook0(THF_SYS, TFN_LOC_CPU);
243#define LOG_LOC_CPU_LEAVE(ercd) trc_rtn_hook(THF_SYS, TFN_LOC_CPU);
244#define LOG_ILOC_CPU_ENTER() sys_hook0_i(THF_SYS, TFN_ILOC_CPU);
245#define LOG_ILOC_CPU_LEAVE(ercd) trc_rtn_hook(THF_SYS, TFN_ILOC_CPU);
246#define LOG_UNL_CPU_ENTER() sys_hook0(THF_SYS, TFN_UNL_CPU);
247#define LOG_UNL_CPU_LEAVE(ercd) trc_rtn_hook(THF_SYS, TFN_UNL_CPU);
248#define LOG_IUNL_CPU_ENTER() sys_hook0_i(THF_SYS, TFN_IUNL_CPU);
249#define LOG_IUNL_CPU_LEAVE(ercd) trc_rtn_hook(THF_SYS, TFN_IUNL_CPU);
250#define LOG_DIS_DSP_ENTER() sys_hook0(THF_SYS, TFN_DIS_DSP);
251#define LOG_DIS_DSP_LEAVE(ercd) trc_rtn_hook(THF_SYS, TFN_DIS_DSP);
252#define LOG_ENA_DSP_ENTER() sys_hook0(THF_SYS, TFN_ENA_DSP);
253#define LOG_ENA_DSP_LEAVE(ercd) trc_rtn_hook(THF_SYS, TFN_ENA_DSP);
254#define LOG_SNS_CTX_ENTER()
255#define LOG_SNS_CTX_LEAVE(state)
256#define LOG_SNS_LOC_ENTER()
257#define LOG_SNS_LOC_LEAVE(state)
258#define LOG_SNS_DSP_ENTER()
259#define LOG_SNS_DSP_LEAVE(state)
260#define LOG_SNS_DPN_ENTER()
261#define LOG_SNS_DPN_LEAVE(state)
262#define LOG_VSNS_INI_ENTER()
263#define LOG_VSNS_INI_LEAVE(state)
264#define LOG_VXSNS_CTX_ENTER(p_excinf)
265#define LOG_VXSNS_CTX_LEAVE(state)
266#define LOG_VXSNS_LOC_ENTER(p_excinf)
267#define LOG_VXSNS_LOC_LEAVE(state)
268#define LOG_VXSNS_DSP_ENTER(p_excinf)
269#define LOG_VXSNS_DSP_LEAVE(state)
270#define LOG_VXSNS_DPN_ENTER(p_excinf)
271#define LOG_VXSNS_DPN_LEAVE(state)
272#define LOG_VXSNS_TEX_ENTER(p_excinf)
273#define LOG_VXSNS_TEX_LEAVE(state)
274#define LOG_VXGET_TIM_ENTER(p_sysutim)
275#define LOG_VXGET_TIM_LEAVE(ercd, sysutim)
276
277#define LOG_CHG_IPM_ENTER(ipm)
278#define LOG_CHG_IPM_LEAVE(ercd)
279#define LOG_GET_IPM_ENTER(p_ipm)
280#define LOG_GET_IPM_LEAVE(ercd, ipm)
281
282#else
283
284#define LOG_INH_LEAVE(inhno) /* プロセッサ依存部 */
285
286#define LOG_ISR_ENTER(intno) /* プロセッサ依存部 */
287#define LOG_ISR_LEAVE(intno) /* プロセッサ依存部 */
288
289#define LOG_CYC_ENTER(cyccb)
290#define LOG_CYC_LEAVE(cyccb)
291
292#define LOG_EXC_ENTER(excno) /* プロセッサ依存部 */
293#define LOG_EXC_LEAVE(excno) /* プロセッサ依存部 */
294
295#define LOG_TEX_ENTER(texptn)
296#define LOG_TEX_LEAVE(texptn)
297
298#define LOG_TSKSTAT(tcb)
299
300#define LOG_DSP_ENTER(tcb) /* プロセッサ依存部 */
301#define LOG_DSP_LEAVE(tcb) /* プロセッサ依存部 */
302
303#define LOG_ACT_TSK_ENTER(tskid)
304#define LOG_ACT_TSK_LEAVE(ercd)
305#define LOG_IACT_TSK_ENTER(tskid)
306#define LOG_IACT_TSK_LEAVE(ercd)
307#define LOG_CAN_ACT_ENTER(tskid)
308#define LOG_CAN_ACT_LEAVE(ercd)
309#define LOG_EXT_TSK_ENTER()
310#define LOG_TER_TSK_ENTER(tskid)
311#define LOG_TER_TSK_LEAVE(ercd)
312#define LOG_CHG_PRI_ENTER(tskid, tskpri)
313#define LOG_CHG_PRI_LEAVE(ercd)
314#define LOG_GET_PRI_ENTER(tskid, p_tskpri)
315#define LOG_GET_PRI_LEAVE(ercd, tskpri)
316#define LOG_SLP_TSK_ENTER()
317#define LOG_SLP_TSK_LEAVE(ercd)
318#define LOG_TSLP_TSK_ENTER(tmout)
319#define LOG_TSLP_TSK_LEAVE(ercd)
320#define LOG_WUP_TSK_ENTER(tskid)
321#define LOG_WUP_TSK_LEAVE(ercd)
322#define LOG_IWUP_TSK_ENTER(tskid)
323#define LOG_IWUP_TSK_LEAVE(ercd)
324#define LOG_CAN_WUP_ENTER(tskid)
325#define LOG_CAN_WUP_LEAVE(ercd)
326#define LOG_REL_WAI_ENTER(tskid)
327#define LOG_REL_WAI_LEAVE(ercd)
328#define LOG_IREL_WAI_ENTER(tskid)
329#define LOG_IREL_WAI_LEAVE(ercd)
330#define LOG_SUS_TSK_ENTER(tskid)
331#define LOG_SUS_TSK_LEAVE(ercd)
332#define LOG_RSM_TSK_ENTER(tskid)
333#define LOG_RSM_TSK_LEAVE(ercd)
334#define LOG_FRSM_TSK_ENTER(tskid)
335#define LOG_FRSM_TSK_LEAVE(ercd)
336#define LOG_DLY_TSK_ENTER(dlytim)
337#define LOG_DLY_TSK_LEAVE(ercd)
338#define LOG_RAS_TEX_ENTER(tskid, rasptn)
339#define LOG_RAS_TEX_LEAVE(ercd)
340#define LOG_IRAS_TEX_ENTER(tskid, rasptn)
341#define LOG_IRAS_TEX_LEAVE(ercd)
342#define LOG_DIS_TEX_ENTER()
343#define LOG_DIS_TEX_LEAVE(ercd)
344#define LOG_ENA_TEX_ENTER()
345#define LOG_ENA_TEX_LEAVE(ercd)
346#define LOG_SNS_TEX_ENTER()
347#define LOG_SNS_TEX_LEAVE(state)
348#define LOG_SIG_SEM_ENTER(semid)
349#define LOG_SIG_SEM_LEAVE(ercd)
350#define LOG_ISIG_SEM_ENTER(semid)
351#define LOG_ISIG_SEM_LEAVE(ercd)
352#define LOG_WAI_SEM_ENTER(semid)
353#define LOG_WAI_SEM_LEAVE(ercd)
354#define LOG_POL_SEM_ENTER(semid)
355#define LOG_POL_SEM_LEAVE(ercd)
356#define LOG_TWAI_SEM_ENTER(semid, tmout)
357#define LOG_TWAI_SEM_LEAVE(ercd)
358#define LOG_SET_FLG_ENTER(flgid, setptn)
359#define LOG_SET_FLG_LEAVE(ercd)
360#define LOG_ISET_FLG_ENTER(flgid, setptn)
361#define LOG_ISET_FLG_LEAVE(ercd)
362#define LOG_CLR_FLG_ENTER(flgid, clrptn)
363#define LOG_CLR_FLG_LEAVE(ercd)
364#define LOG_WAI_FLG_ENTER(flgid, waiptn, wfmode, p_flgptn)
365#define LOG_WAI_FLG_LEAVE(ercd, flgptn)
366#define LOG_POL_FLG_ENTER(flgid, waiptn, wfmode, p_flgptn)
367#define LOG_POL_FLG_LEAVE(ercd, flgptn)
368#define LOG_TWAI_FLG_ENTER(flgid, waiptn, wfmode, p_flgptn, tmout)
369#define LOG_TWAI_FLG_LEAVE(ercd, flgptn)
370#define LOG_SND_DTQ_ENTER(dtqid, data)
371#define LOG_SND_DTQ_LEAVE(ercd)
372#define LOG_PSND_DTQ_ENTER(dtqid, data)
373#define LOG_PSND_DTQ_LEAVE(ercd)
374#define LOG_IPSND_DTQ_ENTER(dtqid, data)
375#define LOG_IPSND_DTQ_LEAVE(ercd)
376#define LOG_TSND_DTQ_ENTER(dtqid, data, tmout)
377#define LOG_TSND_DTQ_LEAVE(ercd)
378#define LOG_FSND_DTQ_ENTER(dtqid, data)
379#define LOG_FSND_DTQ_LEAVE(ercd)
380#define LOG_IFSND_DTQ_ENTER(dtqid, data)
381#define LOG_IFSND_DTQ_LEAVE(ercd)
382#define LOG_RCV_DTQ_ENTER(dtqid, p_data)
383#define LOG_RCV_DTQ_LEAVE(ercd, data)
384#define LOG_PRCV_DTQ_ENTER(dtqid, p_data)
385#define LOG_PRCV_DTQ_LEAVE(ercd, data)
386#define LOG_TRCV_DTQ_ENTER(dtqid, p_data, tmout)
387#define LOG_TRCV_DTQ_LEAVE(ercd, data)
388#define LOG_SND_MBX_ENTER(mbxid, pk_msg)
389#define LOG_SND_MBX_LEAVE(ercd)
390#define LOG_RCV_MBX_ENTER(mbxid, ppk_msg)
391#define LOG_RCV_MBX_LEAVE(ercd, pk_msg)
392#define LOG_PRCV_MBX_ENTER(mbxid, ppk_msg)
393#define LOG_PRCV_MBX_LEAVE(ercd, pk_msg)
394#define LOG_TRCV_MBX_ENTER(mbxid, ppk_msg, tmout)
395#define LOG_TRCV_MBX_LEAVE(ercd, pk_msg)
396#define LOG_GET_MPF_ENTER(mpfid, p_blk)
397#define LOG_GET_MPF_LEAVE(ercd, blk)
398#define LOG_PGET_MPF_ENTER(mpfid, p_blk)
399#define LOG_PGET_MPF_LEAVE(ercd, blk)
400#define LOG_TGET_MPF_ENTER(mpfid, p_blk, tmout)
401#define LOG_TGET_MPF_LEAVE(ercd, blk)
402#define LOG_REL_MPF_ENTER(mpfid, blk)
403#define LOG_REL_MPF_LEAVE(ercd)
404#define LOG_SET_TIM_ENTER(p_systim)
405#define LOG_SET_TIM_LEAVE(ercd)
406#define LOG_GET_TIM_ENTER(p_systim)
407#define LOG_GET_TIM_LEAVE(ercd, systim)
408#define LOG_ISIG_TIM_ENTER()
409#define LOG_ISIG_TIM_LEAVE(ercd)
410#define LOG_STA_CYC_ENTER(cycid)
411#define LOG_STA_CYC_LEAVE(ercd)
412#define LOG_STP_CYC_ENTER(cycid)
413#define LOG_STP_CYC_LEAVE(ercd)
414#define LOG_ROT_RDQ_ENTER(tskpri)
415#define LOG_ROT_RDQ_LEAVE(ercd)
416#define LOG_IROT_RDQ_ENTER(tskpri)
417#define LOG_IROT_RDQ_LEAVE(ercd)
418#define LOG_GET_TID_ENTER(p_tskid)
419#define LOG_GET_TID_LEAVE(ercd, tskid)
420#define LOG_IGET_TID_ENTER(p_tskid)
421#define LOG_IGET_TID_LEAVE(ercd, tskid)
422#define LOG_LOC_CPU_ENTER()
423#define LOG_LOC_CPU_LEAVE(ercd)
424#define LOG_ILOC_CPU_ENTER()
425#define LOG_ILOC_CPU_LEAVE(ercd)
426#define LOG_UNL_CPU_ENTER()
427#define LOG_UNL_CPU_LEAVE(ercd)
428#define LOG_IUNL_CPU_ENTER()
429#define LOG_IUNL_CPU_LEAVE(ercd)
430#define LOG_DIS_DSP_ENTER()
431#define LOG_DIS_DSP_LEAVE(ercd)
432#define LOG_ENA_DSP_ENTER()
433#define LOG_ENA_DSP_LEAVE(ercd)
434#define LOG_SNS_CTX_ENTER()
435#define LOG_SNS_CTX_LEAVE(state)
436#define LOG_SNS_LOC_ENTER()
437#define LOG_SNS_LOC_LEAVE(state)
438#define LOG_SNS_DSP_ENTER()
439#define LOG_SNS_DSP_LEAVE(state)
440#define LOG_SNS_DPN_ENTER()
441#define LOG_SNS_DPN_LEAVE(state)
442#define LOG_VSNS_INI_ENTER()
443#define LOG_VSNS_INI_LEAVE(state)
444#define LOG_VXSNS_CTX_ENTER(p_excinf)
445#define LOG_VXSNS_CTX_LEAVE(state)
446#define LOG_VXSNS_LOC_ENTER(p_excinf)
447#define LOG_VXSNS_LOC_LEAVE(state)
448#define LOG_VXSNS_DSP_ENTER(p_excinf)
449#define LOG_VXSNS_DSP_LEAVE(state)
450#define LOG_VXSNS_DPN_ENTER(p_excinf)
451#define LOG_VXSNS_DPN_LEAVE(state)
452#define LOG_VXSNS_TEX_ENTER(p_excinf)
453#define LOG_VXSNS_TEX_LEAVE(state)
454#define LOG_VXGET_TIM_ENTER(p_sysutim)
455#define LOG_VXGET_TIM_LEAVE(ercd, sysutim)
456
457#define LOG_CHG_IPM_ENTER(ipm)
458#define LOG_CHG_IPM_LEAVE(ercd)
459#define LOG_GET_IPM_ENTER(p_ipm)
460#define LOG_GET_IPM_LEAVE(ercd, ipm)
461
462#endif
463
464#endif /* _TOOL_CONFIG_H_ */
Note: See TracBrowser for help on using the repository browser.