Go to the documentation of this file.
35 #ifndef _ASM_NLM_MIPS_EXTS_H
36 #define _ASM_NLM_MIPS_EXTS_H
41 #define read_c0_eirr() __read_64bit_c0_register($9, 6)
42 #define read_c0_eimr() __read_64bit_c0_register($9, 7)
43 #define write_c0_eirr(val) __write_64bit_c0_register($9, 6, val)
50 #define write_c0_eimr(val) \
52 if (sizeof(unsigned long) == 4) { \
53 unsigned long __flags; \
55 local_irq_save(__flags); \
56 __asm__ __volatile__( \
58 "dsll\t%L0, %L0, 32\n\t" \
59 "dsrl\t%L0, %L0, 32\n\t" \
60 "dsll\t%M0, %M0, 32\n\t" \
61 "or\t%L0, %L0, %M0\n\t" \
62 "dmtc0\t%L0, $9, 7\n\t" \
65 __flags = (__flags & 0xffff00ff) | (((val) & 0xff) << 8);\
66 local_irq_restore(__flags); \
68 __write_64bit_c0_register($9, 7, (val)); \