i386 Interrupt Management
More...
i386 Interrupt Management
◆ i386_disable_interrupts
#define i386_disable_interrupts |
( |
|
_level | ) |
|
Value: { \
__asm__ volatile ( "pushf ; \ cli ; \ pop %0" \
: "=rm" ((_level)) \
); \
}
◆ i386_enable_interrupts
#define i386_enable_interrupts |
( |
|
_level | ) |
|
Value: { \
__asm__ volatile ( "push %0 ; \ popf" \
: : "rm" ((_level)) : "cc" \
); \
}
◆ i386_flash_interrupts
#define i386_flash_interrupts |
( |
|
_level | ) |
|
Value: { \
__asm__ volatile ( "push %0 ; \ popf ; \ cli" \
: : "rm" ((_level)) : "cc" \
); \
}
◆ i386_get_interrupt_level
#define i386_get_interrupt_level |
( |
|
_level | ) |
|
Value: do { \
uint32_t _eflags; \
\
__asm__ volatile ( "pushf ; \ pop %0" \
: "=rm" ((_eflags)) \
); \
\
_level = (_eflags & EFLAGS_INTR_ENABLE) ? 0 : 1; \
} while (0)