OSDN Git Service

add Cortex-M3 PendSV
[hos/hos-v4a.git] / kernel / source / arch / proc / arm / arm_v7m / ena_int.c
1 /** 
2  *  Hyper Operating System V4 Advance
3  *
4  * @file  dis_int.c
5  * @brief %jp{ARMv7-M}%en{ARMv7-M}
6  *
7  * Copyright (C) 1998-2011 by Project HOS
8  * http://sourceforge.jp/projects/hos/
9  */
10
11
12 #include "core/core.h"
13 #include "object/inhobj.h"
14
15
16 /* 割込みの許可 */
17 ER ena_int(INTNO intno)
18 {
19         if ( intno < _KERNEL_PROCATR_TMIN_INHNO || intno > _KERNEL_PROCATR_TMAX_INHNO )
20         {
21                 return E_PAR;
22         }
23         
24         *(_KERNEL_REG_INT_SETENA_BASE + (intno >> 2)) = (1 << (intno & 3));
25         
26         return E_OK;
27 }
28
29
30
31 /* end of file */