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

Go to the source code of this file.

Macros

#define read_c0_eirr()   __read_64bit_c0_register($9, 6)
 
#define read_c0_eimr()   __read_64bit_c0_register($9, 7)
 
#define write_c0_eirr(val)   __write_64bit_c0_register($9, 6, val)
 
#define write_c0_eimr(val)
 

Macro Definition Documentation

#define read_c0_eimr ( )    __read_64bit_c0_register($9, 7)

Definition at line 42 of file mips-extns.h.

#define read_c0_eirr ( )    __read_64bit_c0_register($9, 6)

Definition at line 41 of file mips-extns.h.

#define write_c0_eimr (   val)
Value:
do { \
if (sizeof(unsigned long) == 4) { \
unsigned long __flags; \
local_irq_save(__flags); \
__asm__ __volatile__( \
".set\tmips64\n\t" \
"dsll\t%L0, %L0, 32\n\t" \
"dsrl\t%L0, %L0, 32\n\t" \
"dsll\t%M0, %M0, 32\n\t" \
"or\t%L0, %L0, %M0\n\t" \
"dmtc0\t%L0, $9, 7\n\t" \
".set\tmips0" \
: : "r" (val)); \
__flags = (__flags & 0xffff00ff) | (((val) & 0xff) << 8);\
local_irq_restore(__flags); \
} while (0)

Definition at line 50 of file mips-extns.h.

#define write_c0_eirr (   val)    __write_64bit_c0_register($9, 6, val)

Definition at line 43 of file mips-extns.h.