File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3030 pa; \
3131})
3232
33+ #define CR_EIEM 15 /* External Interrupt Enable Mask */
34+ #define CR_CR16 16 /* CR16 Interval Timer */
35+ #define CR_EIRR 23 /* External Interrupt Request Register */
36+
3337#define mfctl (reg ) ({ \
3438 unsigned long cr; \
3539 __asm__ __volatile__( \
36- "mfctl " #reg " ,%0" : \
37- "=r" (cr) \
40+ "mfctl %1 ,%0" : \
41+ "=r" (cr) : "i" (reg) \
3842 ); \
3943 cr; \
4044})
4448 : /* no outputs */ \
4549 : "r " (gr), "i" (cr) : "memory")
4650
47- /* these are here to de-mystefy the calling code, and to provide hooks */
48- /* which I needed for debugging EIEM problems -PB */
49- #define get_eiem () mfctl(15)
50- static inline void set_eiem (unsigned long val )
51- {
52- mtctl (val , 15 );
53- }
51+ #define get_eiem () mfctl(CR_EIEM)
52+ #define set_eiem (val ) mtctl(val, CR_EIEM)
5453
5554#define mfsp (reg ) ({ \
5655 unsigned long cr; \
You can’t perform that action at this time.
0 commit comments