L4Re Operating System Framework
Interface and Usage Documentation
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
irq.h
Go to the documentation of this file.
1
7/*
8 * (c) 2008-2009 Adam Lackorzynski <adam@os.inf.tu-dresden.de>,
9 * Alexander Warg <warg@os.inf.tu-dresden.de>,
10 * Frank Mehnert <fm3@os.inf.tu-dresden.de>
11 * economic rights: Technische Universität Dresden (Germany)
12 * License: see LICENSE.spdx (in this directory or the directories above)
13 */
14#ifndef __L4UTIL__ARCH_ARCH__IRQ_H__
15#define __L4UTIL__ARCH_ARCH__IRQ_H__
16
17#ifdef __GNUC__
18
19#include <l4/sys/compiler.h>
20
22
23L4_INLINE void l4util_cli (void);
24L4_INLINE void l4util_sti (void);
25L4_INLINE void l4util_flags_save(l4_umword_t *flags);
26L4_INLINE void l4util_flags_restore(l4_umword_t *flags);
27
29void
30l4util_cli(void)
31{
32 extern void __do_not_use_l4util_cli(void);
33 __do_not_use_l4util_cli();
34}
35
36
38void
39l4util_sti(void)
40{
41 extern void __do_not_use_l4util_sti(void);
42 __do_not_use_l4util_sti();
43}
44
45
47void
48l4util_flags_save(l4_umword_t *flags)
49{
50 (void)flags;
51 extern void __do_not_use_l4util_flags_save(void);
52 __do_not_use_l4util_flags_save();
53}
54
56void
57l4util_flags_restore(l4_umword_t *flags)
58{
59 (void)flags;
60 extern void __do_not_use_l4util_flags_restore(void);
61 __do_not_use_l4util_flags_restore();
62}
63
65
66#endif //__GNUC__
67
68#endif /* ! __L4UTIL__ARCH_ARCH__IRQ_H__ */
L4 compiler related defines.
unsigned long l4_umword_t
Unsigned machine word.
Definition l4int.h:40
#define __END_DECLS
End section with C types and functions.
Definition compiler.h:167
#define L4_INLINE
L4 Inline function attribute.
Definition compiler.h:51
#define __BEGIN_DECLS
Start section with C types and functions.
Definition compiler.h:164