blob: 1c85fb7ab487eb9939988cb0171f96ac3be607b6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/* Public domain. */
#ifndef _LINUX_IRQFLAGS_H
#define _LINUX_IRQFLAGS_H
#include <machine/intr.h>
#define local_irq_save(x) (x) = splhigh()
#define local_irq_restore(x) splx((x))
#define local_irq_disable() intr_disable()
#define local_irq_enable() intr_enable()
static inline int
irqs_disabled(void)
{
/* XXX not quite true */
return (1);
}
#endif
|