OSDN Git Service

(none)
[hos/hos-v4a.git] / kernel / source / object / inh / exe_inh.c
1 /** 
2  *  Hyper Operating System V4 Advance
3  *
4  * @file  exe_inh.c
5  * @brief %jp{割り込みハンドラの処理}
6  *
7  * Copyright (C) 1998-2006 by Project HOS
8  * http://sourceforge.jp/projects/hos/
9  */
10
11
12
13 #include "core/core.h"
14 #include "object/inhobj.h"
15
16
17
18 /* %jp{割り込みハンドラの処理} */
19 void _kernel_exe_inh(INHNO inhno)
20 {
21         const _KERNEL_T_INHINF *pk_inhinf;
22         
23         pk_inhinf = _KERNEL_INT_GET_INHINF(inhno);
24         
25         if ( pk_inhinf->inthdr != NULL )
26         {
27                 _KERNEL_ENA_INT();                      /* %jp{多重割込み許可} */
28                 pk_inhinf->inthdr(inhno);       /* %jp{割込みハンドラの処理} */
29                 _KERNEL_DIS_INT();                      /* %jp{割込み禁止} */
30         }
31 }
32
33
34
35 /* end of file */