Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
irqflags.h File Reference

Go to the source code of this file.

Macros

#define __arch_local_irq_disable()
 
#define __arch_local_irq_enable()
 
#define __arch_local_save_flags(flags)
 
#define __arch_local_irq_save(flags)
 
#define __arch_local_irq_restore(flags)
 
#define __arch_irqs_disabled()   ((__get_PSR() & PSR_PIL) >= PSR_PIL_14)
 

Macro Definition Documentation

#define __arch_irqs_disabled ( )    ((__get_PSR() & PSR_PIL) >= PSR_PIL_14)

Definition at line 155 of file irqflags.h.

#define __arch_local_irq_disable ( )
Value:
do { \
unsigned long psr; \
asm volatile(" movsg psr,%0 \n" \
" andi %0,%2,%0 \n" \
" ori %0,%1,%0 \n" \
" movgs %0,psr \n" \
: "=r"(psr) \
: "i" (PSR_PIL_14), "i" (~PSR_PIL) \
: "memory"); \
} while (0)

Definition at line 101 of file irqflags.h.

#define __arch_local_irq_enable ( )
Value:
do { \
unsigned long psr; \
asm volatile(" movsg psr,%0 \n" \
" andi %0,%1,%0 \n" \
" movgs %0,psr \n" \
: "=r"(psr) \
: "i" (~PSR_PIL) \
: "memory"); \
} while (0)

Definition at line 113 of file irqflags.h.

#define __arch_local_irq_restore (   flags)
Value:
do { \
typecheck(unsigned long, flags); \
asm volatile(" movgs %0,psr \n" \
: \
: "r" (flags) \
: "memory"); \
} while (0)

Definition at line 146 of file irqflags.h.

#define __arch_local_irq_save (   flags)
Value:
do { \
unsigned long npsr; \
typecheck(unsigned long, flags); \
asm volatile(" movsg psr,%0 \n" \
" andi %0,%3,%1 \n" \
" ori %1,%2,%1 \n" \
" movgs %1,psr \n" \
: "=r"(flags), "=r"(npsr) \
: "i" (PSR_PIL_14), "i" (~PSR_PIL) \
: "memory"); \
} while (0)

Definition at line 133 of file irqflags.h.

#define __arch_local_save_flags (   flags)
Value:
do { \
typecheck(unsigned long, flags); \
asm("movsg psr,%0" \
: "=r"(flags) \
: \
: "memory"); \
} while (0)

Definition at line 124 of file irqflags.h.