Subversion Repositories HelenOS

Rev

Rev 2128 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2128 Rev 2465
Line 1... Line 1...
1
/*
1
/*
2
 * Copyright (c) 2005 Jakub Jermar
2
 * Copyright (c) 2007 Michal Kebrt
3
 * All rights reserved.
3
 * All rights reserved.
4
 *
4
 *
5
 * Redistribution and use in source and binary forms, with or without
5
 * Redistribution and use in source and binary forms, with or without
6
 * modification, are permitted provided that the following conditions
6
 * modification, are permitted provided that the following conditions
7
 * are met:
7
 * are met:
Line 25... Line 25...
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
 */
27
 */
28
 
28
 
29
/** @addtogroup arm32interrupt
29
/** @addtogroup arm32interrupt
30
 * @ingroup interrupt
-
 
31
 * @{
30
 * @{
32
 */
31
 */
33
/** @file
32
/** @file
-
 
33
 *  @brief Declarations of interrupt controlling routines.
34
 */
34
 */
35
 
35
 
36
#ifndef KERN_arm32_INTERRUPT_H_
36
#ifndef KERN_arm32_INTERRUPT_H_
37
#define KERN_arm32_INTERRUPT_H_
37
#define KERN_arm32_INTERRUPT_H_
38
 
38
 
-
 
39
#include <arch/types.h>
-
 
40
 
-
 
41
/** Initial size of exception dispatch table. */
39
#define IVT_ITEMS   0   /* TODO */
42
#define IVT_ITEMS   6
-
 
43
 
-
 
44
/** Index of the first item in exception dispatch table. */
40
#define IVT_FIRST   0   /* TODO */
45
#define IVT_FIRST   0
-
 
46
 
-
 
47
 
-
 
48
extern void interrupt_init(void);
-
 
49
extern ipl_t interrupts_disable(void);
-
 
50
extern ipl_t interrupts_enable(void);
-
 
51
extern void interrupts_restore(ipl_t ipl);
-
 
52
extern ipl_t interrupts_read(void);
-
 
53
 
41
 
54
 
42
#endif
55
#endif
43
 
56
 
44
/** @}
57
/** @}
45
 */
58
 */