OSDN Git Service

(none)
[hos/hos-v4a.git] / kernel / source / arch / irc / mips / jelly / vclr_int.c
1 /** 
2  *  Hyper Operating System V4 Advance
3  *
4  * @file  vclr_int.h
5  * @brief %jp{Jelly FPGAシステム}%en{Jelly FPGA}
6  *
7  * Copyright (C) 1998-2008 by Project HOS
8  * http://sourceforge.jp/projects/hos/
9  */
10
11
12 #include "core/core.h"
13 #include "object/inhobj.h"
14 #include "object/isrobj.h"
15
16
17 /* %jp{割り込みのクリア} */
18 ER vclr_int(INTNO intno)
19 {
20         if ( intno < _KERNEL_IRCATR_TMIN_INTNO || intno > *_KERNEL_IRC_FACTOR_ID_MAX )
21         {
22                 return E_PAR;
23         }
24         
25         *_KERNEL_IRC_ENABLE = 0;
26
27         *_KERNEL_IRC_FACTOR_PENDING(intno) = 0;
28
29         *_KERNEL_IRC_ENABLE = 1;
30
31         return E_OK;
32 }
33
34
35 /* end of file */