Chen Liqin | 6bc9a39 | 2009-06-12 22:01:00 +0800 | [diff] [blame] | 1 | #ifndef _ASM_SCORE_IRQ_REGS_H |
2 | #define _ASM_SCORE_IRQ_REGS_H | ||||
3 | |||||
Chen Liqin | ffa818b | 2009-08-30 12:30:16 +0800 | [diff] [blame] | 4 | #include <linux/thread_info.h> |
5 | |||||
6 | static inline struct pt_regs *get_irq_regs(void) | ||||
7 | { | ||||
8 | return current_thread_info()->regs; | ||||
9 | } | ||||
Chen Liqin | 6bc9a39 | 2009-06-12 22:01:00 +0800 | [diff] [blame] | 10 | |
11 | #endif /* _ASM_SCORE_IRQ_REGS_H */ |